[Lazarus] library initialization finalization syntax

Thierry Coq tcoq at free.fr
Thu Feb 25 21:21:48 CET 2010


Thx!

I need to check the latest version. My current production version of 
Lazarus is getting old ;-)

Thierry

Mattias Ga"rtner wrote:
> Zitat von Thierry Coq <tcoq at free.fr>:
>
>> [...]
>> Bernd Kreuss wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> library libtest;
>>>
>>> {$mode objfpc}{$H+}
>>>
>>> uses
>>> Windows;
>>>
>>> initialization
>>> MessageBox(0, 'loaded', 'library', 0);
>>> finalization
>>> MessageBox(0, 'unloading', 'library', 0);
>>> end.
>>>
>>>
>>> This will compile and will pop up the messageboxes (at least on windows
>>> it does) but the quick syntax check will complain and also
>>> <ctrl>+<space> and <shift>+<space> to get autocompletion and calltips
>>> won't work anymore inside these sections and JCF code formatting will
>>> also fail.
>>>
>>> Is the usage of these sections in libraries an undocumented feature 
>>> that
>>> only works by accident or should I try to find a fix for the syntax
>>> check when I have some time?
>
> Fixed.
>
> Mattias
>
>
>
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>





More information about the Lazarus mailing list