[fpc-devel] Adding procedures using nodes

2018-08-02 Thread Ryan Joseph
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

Re: [fpc-devel] Exceptions on wiki

2018-08-02 Thread Sergei Gorelkin via fpc-devel
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

Re: [fpc-devel] Why/how does the compiler have a non-trivial numberof memory leaks after over two decades of development?

2018-08-02 Thread J. Gareth Moreton
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.

Re: [fpc-devel] Why/how does the compiler have a non-trivial number of memory leaks after over two decades of development?

2018-08-02 Thread Ben Grasset
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

Re: [fpc-devel] Exceptions on wiki

2018-08-02 Thread J. Gareth Moreton
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

Re: [fpc-devel] Exceptions on wiki

2018-08-02 Thread Joost van der Sluis
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