|
|
Log in / Subscribe / Register

C and C++ could have non_nullable pointers, easily

C and C++ could have non_nullable pointers, easily

Posted Sep 9, 2009 6:35 UTC (Wed) by cmccabe (guest, #60281)
In reply to: C and C++ could have non_nullable pointers, easily by hummassa
Parent article: Null pointers, one month later

C++ does have non nullable pointers. They're called references.

References must point to valid objects.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


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