From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-08 11:40:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newspeer1.nwr.nac.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: Mon, 08 Dec 2003 20:27:24 +0100 Organization: AdaCL Message-ID: <3351025.PnbiN6M26i@linux1.krischik.com> References: <5JmdnUF_9o_ABE-iRTvUrg@rapidnet.com> <1273941.m4G3ZzughP@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1070912245 03 9724 ke8sG2q6Sf+3L8K 031208 19:37:25 X-Complaints-To: usenet-abuse@t-online.de X-ID: GDa456ZEYeXnwwFYxAcaZsqVG+hNWv3UAwe4wrwHNQq1Hx3xIwM2Qh User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3236 Date: 2003-12-08T20:27:24+01:00 List-Id: Georg Bauhaus wrote: > Chad Bremmon wrote: > : Hyman Rosen wrote: > :> Chad Bremmon wrote: > :> > :>> Not true. A C++ Struct is the equivalent of an untagged Ada Type. > :> > :> > :> The only difference between "struct" and "class" in C++ is that the > :> former begins in public mode and the latter in private mode. > : > : A class has a parameter associated with it that is always passed to > : every function of that class. You can't see it. It's a compiler thing, > : but it's there. > > What difference does your compiler produce from the following two > files? > > testX.cc: > > struct X { int a; }; > > testY.cc: > > class Y {public: int a;}; Well, when RTTI is active the stored class names will be different ('X' and 'Y'.) ;-). With Regards Martin -- mailto://krischik@users.sourceforge.net http://adacl.sourceforge.net