Summary: null should have a type of its own
--- Comment #0 from Simen Kjaeraas <simen.kja...@gmail.com> 2011-01-05 16:30:53
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------