[Lazarus] Should the "at" word be painted as reserved word ?

Sven Barth pascaldragon at googlemail.com
Mon Feb 13 14:45:11 CET 2012


Am 13.02.2012 14:21 schrieb "Hans-Peter Diettrich" <DrDiettrich1 at aol.com>:
>
> Sven Barth schrieb:
>
>
>> You're wrong. "contains" (along with "requires") is only a keyword in
package files not library files.
>
>
> Thanks for the correction.
>
>

You're welcome.

>> E.g.
>>
>> package Foobar;
>>
>> contains
>>  Foo in 'foo.pp',
>>  Bar;
>>
>> requires
>>  RTL;
>>
>> end.
>
>
> I couldn't find such files documented anywhere. Are these recognized by
FPC, what's their extension?

These are normal Delphi package main files. There they have the extension
"dpk". For FPC no such extension exists yet, but the compiler can already
parse a file like the above (with whatever extension it might have) and
tries to create a runtime package (extension "ppl" analog to Delphi's
"bpl"). These packages are not useable currently though. Someone started to
implement package support in the compiler some years ago, but it was never
finished...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120213/e87c6e16/attachment-0003.html>


More information about the Lazarus mailing list