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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to