LWN.net Logo

RE: nullable pointers

RE: nullable pointers

Posted Apr 1, 2011 12:46 UTC (Fri) by HelloWorld (guest, #56129)
In reply to: RE: nullable pointers by neilbrown
Parent article: GCC 4.6.0 released

> What you are saying (I think) is that not only should the language provide a 'non-nullable' pointer type (which the compiler assures will never be NULL), but that where a nullable pointer is used, the language should require that there be an explicit test for NULL before dereferencing the pointer or assigning it to a non-nullable pointer.
Yes, this is exactly what I meant.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds