Prof. Abimbola A. Olowofoyeku wrote:
Fair enough. This means that I have to convert one of my big units (Sysutils) from a module to a unit.
To clarify rules that I have implemented: for redefinitions it does not matter if you have modules or units. The distinction is made only between `import' and `uses':
import GPC; System;
signals error, while
uses GPC; System;
gives no error. My resoning was that typically exporter can not predict conflicts. On the other hands in importing (`using') module/unit one can decide what is proper way to resolve conflicts. IMHO for new code preffered way is qualified import plus renames. For quick fix in existing code one can change `import' to `uses'.
To compile Sysutils I have applied the patch below.
diff -u spp/sysutils.pas sysutils/sysutils.pas --- spp/sysutils.pas 2004-02-03 19:30:34.000000000 +0100 +++ sysutils/sysutils.pas 2004-07-14 19:54:21.000000000 +0200 @@ -49,7 +49,7 @@
{$i sysutils.exp}
-import GPC; System; +import GPC (MaxLongInt => GPC_MaxLongInt); System;
{ * @@ * under Cygwin/Mingw, if you don't want to use WinAPI routines but