[Issue 14804] Comparing two Nullables does not check if either is null
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Mar 30 07:41:06 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14804
Luís Marques <luis at luismarques.eu> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis at luismarques.eu
--- Comment #4 from Luís Marques <luis at luismarques.eu> ---
I've also stumbled on this limitation, but the behavior I was looking forward
to was:
    Nullable!int a;
    Nullable!int b;
    assert(a == b);
    Nullable!int c;
    Nullable!int d = 42;
    assert(c != d);
Since I can see the benefit of using Nullable in these different ways, that
probably means this should be a template parameter.
--
    
    
More information about the Digitalmars-d-bugs
mailing list