home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / std / cplus / 1968 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!lucid.com!lucid.com!jss
  3. From: jss@lucid.com (Jerry Schwarz)
  4. Subject: Re: pointer comparisons
  5. Message-ID: <1993Jan4.200625.5680@lucid.com>
  6. Sender: usenet@lucid.com
  7. Reply-To: jss@lucid.com (Jerry Schwarz)
  8. Organization: Lucid, Inc.
  9. References: <1992Dec27.050118.1628@lpi.liant.com> <1992Dec30.184614.5551@microsoft.com> <1992Dec31.170223.21637@lpi.liant.com> <1993Jan1.155241.28217@ucc.su.OZ.AU> <9300300.29980@mulga.cs.mu.OZ.AU>
  10. Date: Mon, 4 Jan 93 20:06:25 GMT
  11. Lines: 22
  12.  
  13. In article <9300300.29980@mulga.cs.mu.OZ.AU>, fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  14. |> 
  15. |> As I noted in a previous article, I don't agree with Scott Turners belief
  16. |> that base class subobjects are objects. To me, these are absurd 
  17. |> consequences, and thus I conclude that the assumption used in deriving them
  18. |> must be flawed.
  19.  
  20. Perhaps fjh would specify some of these "absurd consequences".  I
  21. agree with Scott.  Base class subobjects are objects. Anything else 
  22. would be incomprehensible to me.
  23.  
  24. Given a (pointer to) a base class subobject it is sometimes
  25. necessary to find the containing derived class object. In the
  26. past this conversion operation was necessary only for virtual
  27. function call, but the semantics of C++ are best understood
  28. by considering it a non-trivial operation.  In the future,
  29. if RTTI is accepted, this may become an explicit user invocable
  30. operation in some contexts.
  31.  
  32.    -- Jerry Schwarz
  33.  
  34.  
  35.