Versioned std.exception.bailOut()?
bearophile
bearophileHUGS at lycos.com
Fri Jun 15 07:27:20 PDT 2012
Dmitry Olshansky:
> If that is sole concern, I suggest do a pull that makes enforce
> vs assert decision accessible from the outside:
>
> NotNull!(T, NotNull.Strict) //asserts
> NotNull!T //throws
Nullable isn't the only problem, there are similar problems with
std.random.uniform. How do you tell uniform() what kind of
Nullable to use?
---------------------
> Perhaps throwing an exception prevents inlining ?
With DMD.
Bye,
bearophile
More information about the Digitalmars-d
mailing list