throw new RangeError() prevents algorithm.iteration from being @nogc

Ivan Butygin ivan.butygin at gmail.com
Wed Jan 30 19:44:58 UTC 2019


Is there any reason to use construct like `version (assert) if 
(empty) throw new RangeError();` intead of `onRangeError()` or 
just plain assert?
Worse, this causes @nogc to differ between release and debug.

See also: https://run.dlang.io/is/7h48fC

Thanks


More information about the Digitalmars-d mailing list