digitalmars.D.bugs - box(null) == box(cast(Object)null)
- derick_eddington nospam.yashmoo.com (7/7) Jun 05 2005 If bug http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/421...
If bug 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