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 -- 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: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707