C and C++ could have non_nullable pointers, easily
C and C++ could have non_nullable pointers, easily
Posted Sep 9, 2009 14:28 UTC (Wed) by foom (subscriber, #14868)In reply to: C and C++ could have non_nullable pointers, easily by cmccabe
Parent article: Null pointers, one month later
The only problem is that:
Obj *p = 0;
Obj &r = *p;
Obj *p = 0;
Obj &r = *p;
is perfectly valid. So they don't make a very good non-nullable pointer.
