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-Thread: 103376,131f06967722ab4b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!news.cs.univ-paris8.fr!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada 2005? Date: Tue, 21 Dec 2004 16:53:52 +0100 Organization: None Message-ID: <1750748.eDONUVZfBc@linux1.krischik.com> References: <1103344064.372396.51420@c13g2000cwb.googlegroups.com> <1n1v6175zrtcc.2g6ewdvu7ei5$.dlg@40tude.net> <1103568585.285484.237450@c13g2000cwb.googlegroups.com> <17804669.eaDZ45aH7Z@linux1.krischik.com> <1103643255.196052.267230@c13g2000cwb.googlegroups.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1103704246 03 32519 PF+WX1SJbMmHL+j 041222 08:30:46 X-Complaints-To: usenet-abuse@t-online.de X-ID: G5djusZZQezSPoZgfp34FeYJ5LA4qNcBVahS8u86SiWU7BrP1xlOQT User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:7142 Date: 2004-12-21T16:53:52+01:00 List-Id: jimmaureenrogers@worldnet.att.net wrote: > There are actually some other small differences between "struct" and > "class" in C++. > In a "struct" all members are public by default, while in a "class" all > members are private by default. But that is exactly what I said. For those who can't read regular expression is you replace "class X {" with "struct X { private :" then nothing changes. > The "class" syntax provides good defaults for information hiding. The > "struct" syntax provides compatibility with C code. Only I never rely on defaults in C or C++ and allways specify what I want. That's because 90% of all C / C++ defaults are "unsave". With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com