Re: Recuperating after NS_HANDLER
Re: Recuperating after NS_HANDLER
- Subject: Re: Recuperating after NS_HANDLER
- From: Ondra Cada <email@hidden>
- Date: Mon, 17 May 2004 01:04:15 +0200
Shaun,
On 16.5.2004, at 22:52, Shaun Wexler wrote:
>
each time you enter an exception block, it has to retrieve the current
>
pthread to get the top handler from the thread-specific data, then
>
walk the list of handlers...
Does it? Why, on earth?!?
I admit I've never ever gdb'ed the thing so I don't know what happens
there, but I *did* implement my own NS_DURING/HANDLER macros many times
in different environments. Therefore, I *do* know that *nothing* is
needed but (a) allocate the stack frame buffer, (b) mark it with a
setjmp. All the other stuff (if any, and with ObjC without automatic
objects there is next to none!) can be solved only if the exception was
raised--if ever.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.