[fpc-pascal] Stack alias for ARC like memory management?

Marco van de Voort marcov at stack.nl
Wed Apr 25 14:14:22 CEST 2018


In our previous episode, Marco van de Voort said:
> In our previous episode, Ryan Joseph said:
> > > I think if you want to pursue this, you must be much more concrete. Both the
> > > benefits and the potential pitfalls.
> > 
> > What are the potential pitfalls? 
> 
> I was thinking more about complicating the constructor case, but then I saw
> the code you posted with two mistakes in 4 lines :-)

Ah, no the original code had two mistakes, the new code only one (the double
free).

It does illustrate that the finalization of every object would have to be in
its own try finally block though.


More information about the fpc-pascal mailing list