Versioned std.exception.bailOut()?
Dmitry Olshansky
dmitry.olsh at gmail.com
Fri Jun 15 07:35:10 PDT 2012
On 15.06.2012 18:27, bearophile wrote:
> 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?
why would uniform have to do anything with nullable?
If anything it's handled like always via tempaltes.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list