[fpc-pascal] Why does nested function get corrupted?

Sven Barth pascaldragon at googlemail.com
Sat Sep 10 00:48:35 CEST 2022


Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Fr., 9. Sep. 2022, 00:52:

> Curious more than anything, if is nested captures state in a record and
> passes it as an hidden self param, why does returning the variable and
> calling from outside the calling stack frame corrupt the data? It seems
> like it technically should be there.
>

How about you simply report such corruptions as bugs? I can always close
them as "not a bug" or duplicate if necessary.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220910/e8cb0545/attachment-0001.htm>


More information about the fpc-pascal mailing list