User: Password:
|
|
Subscribe / Log in / New account

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.


(Log in to post comments)


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