----- "Graeme Geldenhuys" wrote 10 lines
I still use that trick daily in Delphi: the cursor handling stuff, that is. It makes it possible to keep the code readable without cluttering it with extra (explicit) try/finally and try/except blocks.
what I DON'T do is use it like in your example, Graeme. I always assign the result to a local variable, which goes out of scope in an implicit finally 't tried if this does (not) work in fpc though.
as for the codesite stuff, there is an open source (& free as in beer) variant for that as well with a Delphi interface. Maybe it can be made portable as well to fpc and x-platform.
http://tracetool.sourceforge.net/
kind regards,
Dimitri Smits
