Re: [fpc-pascal] Arguments gets corrupted with anonymous nested function

2022-09-04 Thread Hairy Pixels via fpc-pascal
> On Sep 4, 2022, at 1:36 PM, Sven Barth wrote: > > Does this also happen if you don't use a class? Otherwise it might be related > with the other error you already reported. But report this anyway, I'll > simply mark it as duplicate if necessary... > I only reproduced using a class with g

Re: [fpc-pascal] Arguments gets corrupted with anonymous nested function

2022-09-04 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am So., 4. Sep. 2022, 18:07: > The following program uses an anonymous nested function which captures a > local variable. It seems the arguments get corrupted (likely because of the > hidden first param for the nested function signature) and prints garbled > da

[fpc-pascal] Arguments gets corrupted with anonymous nested function

2022-09-04 Thread Hairy Pixels via fpc-pascal
The following program uses an anonymous nested function which captures a local variable. It seems the arguments get corrupted (likely because of the hidden first param for the nested function signature) and prints garbled data. I reduced this snippet down from another project but I’m not sure if