www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - box(null) == box(cast(Object)null)

If bug http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/4219 is
fixed, allowing box(null).unboxable(typeid(Object)) to not seg-fault, attempting
(box(null) == box(cast(Object) null)) causes the assert(0) in
Box.opEqualsInternal to trip because for differing types there is only support
implemented for testing equality of number types and no support for testing
other differing types that do pass unboxable.  The lack of support also causes
(box(null) == box(anyType[])) to trip the assert(0).
Jun 05 2005