[Lazarus] FPDoc Editor fails on namespace dotted unit names?
Sven Barth
pascaldragon at googlemail.com
Sun Apr 14 11:43:50 CEST 2013
On 14.04.2013 11:40, Mattias Gaertner wrote:
> On Sun, 14 Apr 2013 11:11:12 +0200
> Sven Barth <pascaldragon at googlemail.com> wrote:
>
>> On 14.04.2013 10:31, Mattias Gaertner wrote:
>>> I meant, can you give me the rules for the dotted unit name scopes that
>>> FPC will implement. Like the "System.Collection.Generics all
>>> three parts will be a symbol so you can't use them in your code". What
>>> exactly does that mean?
>>
>> That you can't have for example have an identifer "Collection" in the
>> global scope of the interface or implementation section.
>
> In the unit "System.Collection.Generics" or in the unit using that unit?
I *think* in both. This feature was implemented by Paul, so your safest
bet would be to ask him. :)
>
>>> Are there already some documentations,
>>> examples, fpc test units?
>>
>> The tests are located in $fpcdir/tests/test and are named tdotunits*.pp.
>> Though I just notice that besides testing for correct compilation the
>> tests never seem to check whether the correct identifier is resolved
>> (e.g. tdotunits2 does never check whether the value is assigned to the
>> correct variable/field). And two of the tests won't be run at all,
>> because they don't start with a "t"... *sigh*
>
> Can you fix that?
Should be possible. I'll add this to my todo list.
>> You can also take a look at
>> http://docwiki.embarcadero.com/RADStudio/XE3/en/Using_Namespaces_with_Delphi
>> but ignore the paragraph about "multi unit namespaces" as this seems to
>> be related to the old Delphi.NET only.
>
> Does that mean FPC will support exactly that or only a subset or will
> it have some additions?
I hope Paul implemented all that already when he worked on dotted unit
names. :)
Regards,
Sven
More information about the Lazarus
mailing list