On 28/07/2010 11:20, Sven Barth wrote:
Am 28.07.2010 11:31, schrieb Martin:
True, please add to wiki, so it doesn't get forgotten
Done.
What about the uses clause I wrote by mistake (I corrected that in the
wiki entry):
uses
Windows, Graphics, Graphics in GraphicsPkg as PkgGraphics;
How should the compiler resolve (the LCL's) Graphics? Or MUST "search
path identifiers" (e.g. "in LCL") be used if there are two units with
the same name in a uses clause (or both uses clauses)?
That's down to the person who implements it...
If the Graphics has no "in" or namespace, then it is resolved as it
would be right now.
- if right now the LCL is searched before the other package =>it's
finding it in the LCL
- if right now GraphicPkg is searched before the LCL => then the above
is an error => as twice the same package is used.
"right now" => current implementation
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel