difference between x = Nullable.init and x.nullify

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 5 03:46:39 PDT 2017


On Sunday, 4 June 2017 at 08:51:44 UTC, Jonathan M Davis wrote:
>> On Saturday, 3 June 2017 at 06:19:29 UTC, Jonathan M Davis 
>> wrote:
>> > Assigning Nullable!Test.init is equivalent to setting the 
>> > internal value to Test.init and setting _isNull to false.
>>
> T _value;
> bool _isNull = true;

So it was a typo that Nullable.init sets _isNull to false?


More information about the Digitalmars-d-learn mailing list