On Mon, Jul 11, 2011 at 15:35, Hans-Peter Diettrich <drdiettri...@aol.com> wrote: > Alexander Klenin schrieb: >>> To which data type do you want apply your "constval" modifier, with which >>> concrete effects? >> >> To any datatype, of course. The result should be: >> 1) Parameter is passed by value > > How to pass objects by value? That, as I said above, is a separate good question. Until it is resolved, I agree with your suggestion of giving warning (or even error) on "const" and "constval" object parameters.
> Records with embedded AnsiStrings or other managed types? That is already done in the usual by-value mechanism. -- Alexander S. Klenin _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel