[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: OT: Re: Those dern C++ exceptions
From:       David Watson <dgwatson () kent ! edu>
Date:       2001-08-15 21:11:21
[Download RAW message or body]

> For instance, you can pass a struct to a C function containing a jmp_buf.
> If the function succeeds you long jump to the jmp_buf destination, and if
> the functions fails you just drop through, after undo everything you've
> done, and return. You invert the meaning of 'exception' to make normal
> behaviour the exception. This allows you to implement 'continuation on
> success' as a control strategy - has anyone murdered C++ exceptions in a
> similar manner?

A friend of mine wrote a program for one of his CS classes that used 
exceptions for everything, mainly just to amuse himself because he was so 
bored...

So yes, you're not the only one to think of this :).

-David
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic