On 2010-12-02, Paul Rubin <[email protected]> wrote:
> MRAB <[email protected]> writes:
>> When writing the C code for the new regex module I thought that it
>> would've been easier if I could've used exceptions to propagate errors
>> and unwind the stack, instead of having to return an error code which
>> had to be checked by the caller, and then have the caller explicitly
>> return an error code to /its/ caller.
>
> That's called longjmp.
In theory.
In practice, using longjump for that without blowing your foot off
isn't easy.
>> Automatic garbage collection would also have been nice.
>
> alloca might help.
And that's almost as easy to screw up. :)
--
Grant Edwards grant.b.edwards Yow! I want EARS! I want
at two ROUND BLACK EARS
gmail.com to make me feel warm
'n secure!!
--
http://mail.python.org/mailman/listinfo/python-list