Article View: comp.std.c++
Article #1123Re: Pointer comparisons
From: Fergus James HENDERSON
Date: Mon, 21 Dec 1992 12:50
Date: Mon, 21 Dec 1992 12:50
20 lines
1396 bytes
1396 bytes
sjm@bcrki65.bnr.ca (Stuart MacMartin) writes: >In article <BzDs2x.wA@frumious.uucp> uunet.ca!frumious!pat writes: >> >> Two pointers to the same object compare equal. If two pointers > >...but nowhere do I see a statement that (p == q) ==> p and q point >to the same object, even if p and q are the same type. This is apparently an oversight, an unintend omission. The ANSI C standard includes such a guarantee, so I am told, so C compatability requires that this hold at least for C++ objects that are also C objects. (Though it needn't apply for empty structs/classes, for example, since C doesn't allow empty structs.) -- Fergus Henderson fjh@munta.cs.mu.OZ.AU This .signature virus is a self-referential statement that is true - but you will only be able to consistently believe it if you copy it to your own .signature file!
Technical Details
Message-ID:
<9235623.27053@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjhReferences:
<BzCG7K.2sG@frumious.uucp> <1992Dec16.202711.22367@bcrka451.bnr.ca> <BzDs2x.wA@frumious.uucp> <1992Dec17.151642.9954@bcrka451.bnr.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) Subject: Re: Pointer comparisons Message-ID: <9235623.27053@mulga.cs.mu.OZ.AU> Sender: news@cs.mu.OZ.AU Organization: Computer Science, University of Melbourne, Australia References: <BzCG7K.2sG@frumious.uucp> <1992Dec16.202711.22367@bcrka451.bnr.ca> <BzDs2x.wA@frumious.uucp> <1992Dec17.151642.9954@bcrka451.bnr.ca> Date: Mon, 21 Dec 1992 12:50:09 GMT Lines: 20