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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dfdb3e9be36e818e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Received: by 10.68.39.100 with SMTP id o4mr7858670pbk.0.1322134976068; Thu, 24 Nov 2011 03:42:56 -0800 (PST) Path: lh20ni12577pbb.0!nntp.google.com!news2.google.com!postnews.google.com!m10g2000vbc.googlegroups.com!not-for-mail From: Yukicanis Newsgroups: comp.lang.ada Subject: Re: type access Parent'Class Date: Thu, 24 Nov 2011 03:18:16 -0800 (PST) Organization: http://groups.google.com Message-ID: <1ecb7970-bd1c-4f09-bb96-d56648faa6b1@m10g2000vbc.googlegroups.com> References: <7fd768a4-f97b-4045-8bab-49d2a3897a61@p2g2000vbj.googlegroups.com> NNTP-Posting-Host: 130.75.117.49 Mime-Version: 1.0 X-Trace: posting.google.com 1322134975 15934 127.0.0.1 (24 Nov 2011 11:42:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Nov 2011 11:42:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m10g2000vbc.googlegroups.com; posting-host=130.75.117.49; posting-account=PkAoygoAAABk9hjFSCyiskOHSFxak1Yv User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Iceweasel/7.0.1,gzip(gfe) Xref: news2.google.com comp.lang.ada:14600 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: 2011-11-24T03:18:16-08:00 List-Id: On 24 Nov., 11:33, Yannick Duch=EAne (Hibou57) wrote: > Le Mon, 21 Nov 2011 20:33:22 +0100, Robert A Duff > a =E9crit:> I also suggest you put most of= your code in packages, rather than > > in the main procedure. =A0That will also help avoid confusion, because > > things behave differently when inside procedures. =A0For example, > > you can't have any dispatching procedures unless you put the type > > in a package spec. > > And also because Access to stuffs at library level is often more handy an= d > more general. > > -- > =93Syntactic sugar causes cancer of the semi-colons.=94 [1] > =93Structured Programming supports the law of the excluded muddle.=94 [1] > [1]: [Epigrams on Programming =97 Alan J. =97 P. Yale University] Indeed. When I use C++, I also put every class in its own file. So I do with Ada. Thanks to everyone. It's nice to have this group. :)