Le 04/11/2013 14:18, Alexander a
écrit :
... coulb be translated to some_proc(const arg: PChar, ...); where the argument cannot be changed in any way (the compiler complains) but the data to which the argument points can be freely changed, thus: (arg + offset)^ := #0; works I don't know a way to make the data pointed to, as being constant. Have a look at http://www.freepascal.org/docs-html/ref/refsu61.html#x160-17000014.4.4 Antonio. The first one applies.
--
|
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal