[fpc-pascal] Re: Read-only global references
leledumbo
leledumbo_cool at yahoo.co.id
Sun Mar 6 19:12:16 CET 2011
Using functions is the only way I know (still it's not that "read only",
accessing from assembly code still allows modification). For pointer based
types, you could give a copy of the instance instead of the original one (if
you want a better read only semantics where the function has persistent
return value).
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Read-only-global-references-tp3410604p3411619.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list