Article View: comp.std.c++
Article #2600Re: can 0 be used as sentinel value for pointe
From: Steve Clamage
Date: Fri, 17 Nov 1995 01:05
Date: Fri, 17 Nov 1995 01:05
20 lines
1053 bytes
1053 bytes
In article lhe@etca.etca.fr, chris@etca.fr (Christian Millour) writes: > >Can 0 be used as sentinel/null value for pointer-to-member data >or functions, the way it is used for ordinary pointers ? Yes. A constant integral zero serves as a null pointer-to-member just as it serves as a null data pointer or function pointer. --- Steve Clamage, stephen.clamage@eng.sun.com --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<48gltk$i43@engnews1.eng.sun.com>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<48f63m$lhe@etca.etca.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: clamage@Eng.Sun.COM (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: can 0 be used as sentinel value for pointe Date: 17 Nov 1995 01:05:18 GMT Organization: Sun Microsystems Inc. Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <48gltk$i43@engnews1.eng.sun.com> References: <48f63m$lhe@etca.etca.fr> Reply-To: clamage@Eng.Sun.COM NNTP-Posting-Host: physics2.berkeley.edu