Michael Schnell wrote:
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.

It doesn't have to detect, the compiler would generate a temp like:

init(temp);
get(temp);
func(temp);
set(temp);
destroy(temp);

Micha
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to