Re: [fpc-pascal] Re: Read-only global references

2011-03-06 Thread Marcos Douglas
On Sun, Mar 6, 2011 at 4:16 PM, Mark Morgan Lloyd wrote: > leledumbo wrote: >> >> 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 or

Re: [fpc-pascal] Re: Read-only global references

2011-03-06 Thread Mark Morgan Lloyd
leledumbo wrote: 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 functio