Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!philmds!prle!nvpna1!strouckn From: strouckn@nvpna1.UUCP (Louis Stroucken 42720) Newsgroups: comp.lang.c++ Subject: Re: classes with no data members Keywords: sizeof,empty classes,new Message-ID: <393@nvpna1.UUCP> Date: 27 Jun 88 10:06:44 GMT References: <464@polari.UUCP> <7943@alice.UUCP> <470@polari.UUCP> <10399@sol.ARPA> <4614@haddock.ISC.COM> <475@polari.UUCP> Reply-To: strouckn@nvpna1.UUCP (Louis Stroucken 42720) Organization: Philips Research Labs, Eindhoven, The Netherlands. Lines: 26 In article <475@polari.UUCP> rlb@polari.UUCP (rlb) writes: [...]>}Prologue: >I assume your posting is based on the feeling (which I also have) that it is >pretty damn hard to come up with a realistic example in which it *matters* >whether or not two pointers to different objects of the same empty class are >distinguishable. What about: p = new empty; q = new empty; // ... if ( p == q ) { delete p; } else { delete p; delete q; } (or something like it. I want a syntax-free language :-) May I delete an empty object twice? If not, I prefer them to be distinct. Louis Stroucken