What's the proper way to use std.getopt?

Mike Wey mike-wey at example.com
Tue Dec 12 18:34:26 UTC 2017


On 12-12-17 00:35, Seb wrote:
> D style would be to use sth. like this (instead of try/catch):
> 
> ```
> scope(failure) {
>    e.msg.writeln;
>    1.exit;
> }
> ```

I might have missed something, but where is `e` defined in this case?

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list