On 16 Jul 2008, at 12:16, Martin Friebe wrote:
IMHO the way it could be done would be for the compiler to create a temporary variable. This could be passed in as var/out-param, and then be assigned to the property, using the proper setter-procedure.
That results in semantics than a var/out parameter, because updates to a var/out parameter are expected to be immediately globally visible, while in this case they would only be visible after the callee has returned. You'd need something like a "copyback" parameter type for this (which then indeed could also be used with properties as opposed to only with regular fields/variables.
Jonas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel