BRAINSTORM: Exceptions using delegates, goto: out of a delegate literal?

Robert Fraser fraserofthenight at gmail.com
Mon Jan 21 00:46:20 PST 2008


Russell Lewis wrote:
>     void func() {
>       keyword1 {
>         SomeOtherFunc(<normal params>);
>       }
>       keyword2(Exception e) {
>         <handler code>
>         goto _out;
>       }
> 
>     _out:
>       return;
>     }


Replace keyword1 with "try" and keyword2 with "catch". Problem solved!



More information about the Digitalmars-d mailing list