Return in finally
BCS
BCS at pathlink.com
Wed Mar 7 14:48:48 PST 2007
Frank Benoit (keinfarbton) wrote:
> If i understand your idea right...
>
> class FinallyException : Object {} // Special excecption to enter a
> finally block.
> class Throwable : Exception {} // Base of all Java Exceptions
>
> Now, instead of finally use only catch blocks
>
> catch( FinallyException fe ){
> ...
> }
>
There is no need for special excption types, Object will catch
everything. Err. However it won't catch a normal exit.
Fud, It's not quite as clean as I thought.
More information about the Digitalmars-d
mailing list