Feasible Idea?: Range Tester
timotheecour
timothee.cour2 at gmail.com
Fri Mar 22 01:37:32 PDT 2013
> it would have to be agreed upon
> whether assertions should be used or whether RangeError should
> be used (or
> that using either was valid, though that's a bad idea IMHO).
if we force range code to throw RangeError, wouldn't that prevent
optimization in release mode? If so, that's no good. Also, simply
using assert(...); is much more convenient in lots of cases
(think user written ranges that don't wanna be bogged down by
boilerplate).
So why not just say: only AssertError or RangeError are valid in
that case, that doesn't seem controversial.
More information about the Digitalmars-d
mailing list