[fpc-pascal] various ways of passing a class instance as a parameter

Alexander Shishkin alexvins at mail.ru
Fri Nov 18 07:58:20 CET 2011


15.11.2011 14:00, Graeme Geldenhuys пишет:

>
> This one confused me a bit. I thought the whole object would be
> read-only, but in fact it is just the AClass instance pointer which
> cannot be modified. The properties of AClass are still read-write.
>
>

Perhaps it will be good to add support for const method modifier as in 
C++ and then make const class-instance parameters immutable.



More information about the fpc-pascal mailing list