[Sc-devel] Re: possible bug? weird situation with exception handling

James Harkins jamshark70 at gmail.com
Sun Nov 18 09:37:03 PST 2007


Oh, right. prTry assumed that thisThread will be the same before and  
after executing the function.

Thanks for looking into it.
hjh

On Nov 18, 2007, at 5:38 AM, Julian Rohrhuber wrote:

> I've fixed this.
>
> the reason was a bug in the error handling within Function:protect  
> (in prTry)
> Since "use" uses protect, your example failed, too.
>
> simplest example:
>
> e = (rout: r { 1 + nil });
> e.rout.next; // ok
>
> e = (rout: r { 1 + nil });
> use { e.rout.next; } // no error
>
>
> e = (rout: r { 1 + nil });
> protect { e.rout.next; } // no error


: H. James Harkins
: jamshark70 at dewdrop-world.net
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-devel/attachments/20071118/50b2917f/attachment.htm


More information about the Sc-devel mailing list