@nogc, exceptions, generic containers... Issues.

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 9 00:05:21 PDT 2014


Meta:

> let ratio = try!(div(x, y));
>
> becomes
>
> let ratio = match div(x, y)
> {
>     Ok(val) => val,
>     Err(msg) => { return Err; }
> }
>
> Maybe we need a similar solution for @nogc.

Related:
https://d.puremagic.com/issues/show_bug.cgi?id=6840

Bye,
bearophile


More information about the Digitalmars-d mailing list