2016-04-12 12:01 GMT+02:00 Maciej Izak <hnb.c...@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
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel