[fpc-devel] Initialize/Finalize management operators and Default intrinsic

Maciej Izak hnb.code at gmail.com
Tue Apr 12 12:12:47 CEST 2016


2016-04-12 12:01 GMT+02:00 Maciej Izak <hnb.code at gmail.com>:

> To protect our management operators we should declare in System.pp:
>
>   FixedAttribute = class(TCustomAttribute); // or
> SystemInitializedAttribute
>
> Now the gSomething from example is declared as:
>
> var
>   [Fixed] gSomething: TSomeType; // fixed can be used only for global
> variables and for class var/{$J+} const (aka static var)
>

Of course is still possible to obtain the error, but to achieve this you
need to really crave this.
-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160412/d6b874fd/attachment.html>


More information about the fpc-devel mailing list