🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2622

Re: can 0 be used as sentinel value for pointers to members ?

#2622
From: J. Kanze
Date: Sat, 18 Nov 1995 03:14
17 lines
1372 bytes
Christian Millour (chris@etca.fr) wrote:
|> Hi all. 

|> Can 0 be used as sentinel/null value for pointer-to-member data 
|> or functions, the way it is used for ordinary pointers ?

Yes.  It is guaranteed that no valid pointer to member will ever compare
equal to 0.
-- 
James Kanze           (+33) 88 14 49 00          email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils, itudes et rialisations en logiciel orienti objet --
              -- A la recherche d'une activiti dans une region francophone
---
[ 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: <48hpep$1ne@gabi.gabi-soft.fr>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <48f63m$lhe@etca.etca.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 18 Nov 95 03:14:26 GMT
Approved: fjh@cs.mu.oz.au
From: kanze@gabi-soft.fr (J. Kanze)
Newsgroups: comp.std.c++
Subject: Re: can 0 be used as sentinel value for pointers to members ?
X-Original-Date: 17 Nov 1995 11:51:05 +0100
Organization: GABI Software, Sarl.
Message-ID: <48hpep$1ne@gabi.gabi-soft.fr>
References: <48f63m$lhe@etca.etca.fr>
X-Newsreader: TIN [version 1.2 PL2]
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMK1PneEDnX0m9pzZAQEiPwF/dNf+zOd2qbaKtd0yu/95XN4fijFh662v
 RCHhnJPlBGjzr4JclGseL0ZzitMAdvVl
 =X/3M