Prof A Olowofoyeku (The African Chief) wrote:
I have a problem. I don't want to export everything. I only want to export things in the current interface section (and there are hundreds of them, and a few of them are routines from the GPC unit/module).
I have tried;
module sysutils interface; export sysutils = all; import GPC; system;
blah, blah; end. module sysutils implementation;
blah blah; end.
I am getting errors (such as "unknown identifier `TString'", "unknown identifier `UnixTimeType'", etc).
Any ideas?
Imports in an interface module are not visible in the corresponding implementation module. But they are visible in the implementation when using a "simple" module like this:
module sysutils; export sysutils = all; import GPC; System;
end;
var a: TString;
end.
At least that's GPC's current behaviour. Perhaps the EP experts can confirm whether this is correct?
Frank