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-Thread: 103376,635cd9622b25ae59 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!v46g2000cwv.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: Type safety, C++ and code generation Date: 2 May 2006 12:50:29 -0700 Organization: http://groups.google.com Message-ID: <1146599428.933070.185160@v46g2000cwv.googlegroups.com> References: <1146143954.169807.207080@t31g2000cwb.googlegroups.com> <1146148380.102042.119860@y43g2000cwc.googlegroups.com> <2051047.MTAq1HeU7p@linux1.krischik.com> <1146576797.106931.267280@i40g2000cwc.googlegroups.com> <4121622.8m23mcTgnF@linux1.krischik.com> NNTP-Posting-Host: 192.91.173.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1146599434 1566 127.0.0.1 (2 May 2006 19:50:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 May 2006 19:50:34 +0000 (UTC) In-Reply-To: <4121622.8m23mcTgnF@linux1.krischik.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=192.91.173.42; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news2.google.com comp.lang.ada:4020 Date: 2006-05-02T12:50:29-07:00 List-Id: Martin Krischik wrote: > REH wrote: > > > 1) > > it should use public inheritance, not private to allow the user access > > to any member function that may be defined (i.e., member operators). > > Code sniplets newsgroups should not be considered complete or perfect and > well I have not typed in "private" explicitly.... > No, but the code should by unambiguous. How was I to know you meant for the base class to be publically inherited? You don't need to explicitly type private. It is the default. REH