Gale Paeper wrote:
"steven.borley" wrote:
On 20 Feb 2005, at 18:37, Waldek Hebisch wrote:
The simplest solution is to rename `round' from fp.pas on import like:
import fp (round => fp_round);
Yes, that works for a simple test program.
Which gives me another problem. I've never used 'import' before, just 'uses'. Looking at the GPC manual, 'import' can only be use in a program file not a unit/module. This is rather limiting for me, if true, as my problem code is spread around several units.
Although I haven't tested it with the latest versions of GPC, I have in the past used Extended Pascal's renaming feature in a uses clause so "uses (round => fp_round)" is alternative to try if you prefer uses clauses to import specifications.
This doesn't work anymore. It was removed because of syntactic conflicts. But `import' works for units as well, so you can use this instead. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8