Jonas Maebe wrote:
Apart from being pretty slow, this also has different semantics than a var parameter. Suppose you modify the var parameter in the callee, and then call another method of the original class instance from the callee -> this method will see the original value of the field/property rather than the modified "var" parameter.

Ah, aliasing problem, indeed.

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

Reply via email to