C and C++ could have non_nullable pointers, easily
C and C++ could have non_nullable pointers, easily
Posted Aug 21, 2009 4:47 UTC (Fri) by njs (subscriber, #40338)In reply to: C and C++ could have non_nullable pointers, easily by nix
Parent article: Null pointers, one month later
Malloc returns a maybe-NULL pointer, just like now. The type system requires you to check for errors before it will let you dereference this pointer. (xmalloc can return a non-NULL pointer, though, because it has done the check.)
So... no problem?
