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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to