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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 10:44:39 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: Mon, 8 Dec 2003 18:44:38 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <5JmdnUF_9o_ABE-iRTvUrg@rapidnet.com> <1273941.m4G3ZzughP@linux1.krischik.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1070909078 8095 134.91.1.34 (8 Dec 2003 18:44:38 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 8 Dec 2003 18:44:38 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:3232 Date: 2003-12-08T18:44:38+00:00 List-Id: 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;}; -- Georg