[fpc-devel] FPC 2.3.1 SVN 8427: new compilation error.
Michael Schnell
mschnell at lumino.de
Wed Sep 12 09:45:43 CEST 2007
> However the codebase I'm porting
> passes properties to EOF all over the place
What do you think a property as a var parameter is supposed to do ?
Theoretically a write to the property _could_ be compiled into a call to
the set method. But with that the called function would need code to
detect if the var parameter is a property and act accordingly. Though a
nice feature, IMHO it would make things so complicated that it does not
make much sense.
I suppose (part of) the difference is not that passing properties as
vars was allowed but that the public value in question a not a property
but a class variable (that _does_ have an address to be passed when
doing "var").
-Michael
More information about the fpc-devel
mailing list