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
bearophile via Digitalmars-d Tue, 09 Sep 2014 00:11:21 -0700
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