[fpc-devel]string constant violation

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Apr 16 09:51:22 CEST 2004


On 16 apr 2004, at 09:06, Ozerski Pavel wrote:

> This sample makes permanent changes in a string constant. If this 
> sample will be compiled in Delphi it restores previous constant value 
> (and all calls of the function Func return the same result; Delphi 6) 
> or crashs with RTE 216 (Delphi 3).

The Delphi 3 behaviour is the correct one imho, and should also become 
the FPC behaviour once we start storing constant data in a read-only 
section.


Jonas





More information about the fpc-devel mailing list