From -1314729012026869523
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,cda54862ecb4a41f
X-Google-Attributes: gidf78e5,public
X-Google-Thread: fc772,cda54862ecb4a41f
X-Google-Attributes: gidfc772,public
X-Google-ArrivalTime: 2001-08-28 22:02:08 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!denver-snf1.gtei.net!news.gtei.net!namche.sun.com!news2me.EBay.Sun.COM!sunnews1.Eng.Sun.COM!engnews1.eng.sun.com!taumet!clamage
From: kanze@gabi-soft.de (James Kanze)
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Re: storage order of inherited classes
Date: 29 Aug 2001 04:55:28 GMT
Organization: http://groups.google.com/
Lines: 33
Approved: stephen.clamage@sun.com (comp.std.c++)
Message-ID: <d6651fb6.0108280024.3d12f6d6@posting.google.com>
References: <MpMh7.6544$3f.1248650@news2-win.server.ntlworld.com>
 <XPai7.507226$lq1.100246902@typhoon.austin.rr.com>
NNTP-Posting-Host: taumet.eng.sun.com
X-NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: 28 Aug 2001 01:24:49 -0700
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAO4w6FEHMCo9UcraBAQGImwH8D1KnuuTdcTGHRY55De2KdhokD0NaEkDA
	AEfeHEdRrzEPrlN0cabzD/RSUZqwhgIw23Tuw7nHnGVwJKRpTlqBzw==
	=OaRb
X-Approved-For-Group: jep@eagle.lhup.edu comp.lang.c++.moderated
Content-Length: 1477
X-Status: $$$$
X-UID: 0000000001
Originator: clamage@taumet
Xref: archiver1.google.com comp.std.c++:7220 comp.lang.c++.moderated:25574


"Gaurav Sareen" <albelakela@hotmail.com> wrote in message
news:<XPai7.507226$lq1.100246902@typhoon.austin.rr.com>...

> This IMO is one of the big reasons why java can be "safer" than C++
> is that the runtime layout of the classes is fixed.

Just curious.  I can see how this makes Java more portable than C++,
at least for some definitions of portable, but how does is make the
language "safer"?  (I'll admit that in 10 years of C++, I've never
seen or heard of an error due to different compilers using different
runtime layouts.  Generally, different compilers use different
mangling schemes, so code from different compilers won't even link
together, much less cause a run-time error.)

--
James Kanze                                   mailto:kanze@gabi-soft.de
Beratung in objektorientierer Datenverarbeitung --
                             -- Conseils en informatique orient�e objet
Ziegelh�ttenweg 17a, 60598 Frankfurt, Germany, T�l.: +49 (0)69 19 86 27



      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]




