[fpc-pascal] Converting old pascal written for Pascal/MT+ compiler

Bart bartjunk64 at gmail.com
Tue Apr 4 16:14:16 CEST 2023


On Tue, Apr 4, 2023 at 9:43 AM Jacob Kroon via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

> What is the technical downside to using "const", or is it just cosmetic ?

If your local "writeable constant" is of type string, and strings are
longstrings, and the writeable const is assigned a value that is the
result of a string concatenation, then you'll have a memory leak.

-- 
Bart


More information about the fpc-pascal mailing list