[fpc-pascal] Looking for JavaScript component on FPC

Michael Van Canneyt michael at freepascal.org
Fri Apr 3 13:25:18 CEST 2015



On Fri, 3 Apr 2015, Graeme Geldenhuys wrote:

> On 2015-04-03 11:52, Michael Van Canneyt wrote:
>>
>> I don't think the command-line option already exists, but the dotted unit
>> names are treated as namespaces. I remember some discussions about it with Paul Ishenin.
>
> So that answers my original question, that FPC still doesn't support
> namespace functionality like Delphi. :-) You can't specify the namespace
> scope, so the compiler cannot know which units to use if there are
> multiple units with the same partial qualified unit names. So currently
> it is just a cosmetic "thing" (fancy unit names) in FPC.

I think you'll find it's slightly more complicated than that, 
there is more involved than just fancy unit names.

The namespace directive/command-line option is just the cherry on top :)

Michael.



More information about the fpc-pascal mailing list