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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal