C and C++ could have non_nullable pointers, easily
C and C++ could have non_nullable pointers, easily
Posted Aug 22, 2009 0:34 UTC (Sat) by nix (subscriber, #2304)In reply to: C and C++ could have non_nullable pointers, easily by corbet
Parent article: Null pointers, one month later
Ew. I wish you hadn't drawn my attention to that :)
... but ERR_PTR() has a somewhat comprehensible reason to exist. The thing
I'm discussing had only half a dozen callers, and half of them ignored the
fact that it might return an error and just blindly dereferenced anyway
(but for all I know the same is true of ERR_PTR()s users).
