Summary: null should have a type of its own
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Simen Kjaeraas <> 2011-01-05 16:30:53 
PST ---
Currently, it is impossible to special-case comparisons with null. If instead
null had its own type, one could allow direct comparisons between user-defined
types and null, instead of supporting comparison with any and all void*s.

For structs, such a comparison function could then be used for both 'foo ==
null' and 'foo is null'. For classes, neither likely makes sense.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to