So the way FreeInstance is called by adding it within a destructor isn’t
exactly what I needed because it requires a destructor actually be present in
the class.
The next thing I’d like to try is adding a procedure dynamically using nodes.
I’ve seen how if statements are made doing things
02.08.2018 20:13, J. Gareth Moreton wrote:
The information in the Wiki about how exception frames are set up is pretty nice. I didn't know that
'raise' creates an exception frame for the procedure it appears in, but explains why it's often
shipped off to another local procedure. Very useful
Well, I'm only a volunteer developer, but I'm all for making the compiler
more efficient and stable. I tend to take the approach of iterative
improvement anyway... start with something quick and dirty (if you can't
easily plan it out perfectly from the start), and slowly improve it over
time.
I'm somewhat surprised to see all the mentions of try-finally in
response to this.
The issues I found and described here are all clearly just simple cases
of variables being created and then never freed. Part of what likely
leads to this is that the compiler relies in many places on checking
The information in the Wiki about how exception frames are set up is
pretty nice. I didn't know that 'raise' creates an exception frame for the
procedure it appears in, but explains why it's often shipped off to another
local procedure. Very useful information!
True though, it's hard to
Op 01-08-18 om 02:32 schreef Kirinn:
Inspired by Gareth aka. Kit's infectious enthusiasm, and the recent long
discussion on exceptions on this list, I wrote up an article on
Exceptions on the FPC wiki. (Strangely enough we didn't have one before.)
http://wiki.freepascal.org/Exceptions
We