Re: Try/Catch
- Posted by Spock Feb 16, 2015
- 4028 views
petelomax said...
Spock said...
With SSC this clean up will happen automatically as part of each routine's normal exit strategy.
...Is there some specific reason why you think that the stack unwind part of try/catch would do anything but exactly the same?
The only slight difference is that you could save a bunch of stuff in e (of catch e fame) that won't disappear until e does.
Pete
Well, maybe I've been mistaken but I thought that all the bits of manually & OS allocated memory (some possibly obtained prior to the original calling point [EDIT: Relevant?]) would require a huge effort to clean up automatically. I will happily accept being proved wrong.
Spock