Waldek Hebisch wrote:
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.
You mean:
: There must be at most one import part in a program.
That statement is wrong. Correct statement is:
There must be at most one import part at the begining of a block. Each module or function/procedure (and also main program) can have its own import part. Single import part can import arbitrarly many interfaces.
Thanks, I'm changing it.
Additionally, he may have been confused because the example only mentioned a program (unlike the example for `uses'). But that's not a restriction, just an omission in the reference.
Frank