Am 13.09.2012 11:47, schrieb Mattias Gaertner:
 > > > Since Lazarus requires 2.6.0 anyway one could change that to use
normal
 > > > class helpers:
 > > The IDE needs 2.6.0. The LCL only needs 2.4.2.
 >
 > But one could already prepare it using ifdefs. This way (if one does it
 > consequently) the LCL could be compiled using -CT at least using
2.6.0+ . :)

Accessing a private variable from outside is a hack. No matter how you
do it.

The variable is "protected" otherwise class helpers (or the original hack) wouldn't have worked. And here class helpers are a officially supported method to do this (though one can of course argue whether it was a good decision by CodeGear to allow this or not...).

I replaced the hack.

Also a possibility...

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to