[fpc-pascal] Over-zealous Warning about dynamic string initialization

Dmitry Boyarintsev skalogryz.lists at gmail.com
Fri Nov 1 22:05:17 CET 2013


On Fri, Nov 1, 2013 at 1:08 PM, Michael Van Canneyt
<michael at freepascal.org>wrote:

> I recommend against it.
>
> It can bite you in the leg, it has bitten me in the leg several times.
> For instance the result identifier for functions returning ansistring is
> particularly tricky.


I'm wondering if it's a question about global vs local variables warning:
http://lists.freepascal.org/lists/fpc-devel/2012-November/030337.html

The warning is true for local vars and indeed it bites! (bites good when
porting delphi to fpc), but should not be a problem for global vars (as in
example above).

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131101/003018ef/attachment.html>


More information about the fpc-pascal mailing list