[go: up one dir, main page]

|
|
Log in / Subscribe / Register

C and C++ could have non_nullable pointers, easily

C and C++ could have non_nullable pointers, easily

Posted Oct 19, 2009 3:47 UTC (Mon) 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

> a null reference cannot exist in a well-defined program

I stand corrected.

I had always considered the "dereference" that occurs during the initialization of a reference
variable as syntax, rather than an actual memory operation, and thus the value of the pointer is
irrelevant at that point. Clearly the standard says otherwise.


to post comments


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