Page 1 of 1

Implementing Exceptions Using setjmp/longjmp

PostPosted: Aug 24, 2003 @ 5:09am
by mlepage

Testing the Mechanism

PostPosted: Aug 24, 2003 @ 5:13am
by mlepage

PostPosted: Sep 2, 2003 @ 2:44am
by mlepage

PostPosted: Sep 3, 2003 @ 2:13pm
by angedelamort
It's been a while I didn't come here, but after reading the thread title, I remember reading something about that. Here something that looks like what I've read:


But I have to say that it's a really nice and simple implementation of the try catch system you've made there. But I learned in your post that try/catch is not working in EVC :P So I think it's excusable.

PostPosted: Sep 3, 2003 @ 3:53pm
by Orpe

PostPosted: Sep 4, 2003 @ 2:30am
by mlepage
But are stack objects (auto storage) automatically destroyed when a longjmp occurs? I didn't think they were, but I can't say I know for sure. Doesn't your method rely on that? I wanted to do something like that, but wasn't sure it was possible.

There's lots of fancy exception implementations out there, I kind of like mine for being extremely simple.

By all means check for try/catch depth if you have nested code. So far I'm not heavily nesting code that uses exceptions, so I'm fairly safe from that particular problem.

PostPosted: Sep 4, 2003 @ 2:55am
by Orpe

PostPosted: Sep 4, 2003 @ 3:01am
by mlepage

PostPosted: Sep 4, 2003 @ 3:08am
by Orpe

PostPosted: Sep 4, 2003 @ 3:31am
by mlepage