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: a07f3367d7,cb04cee6116c8ced X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!z17g2000yqh.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Package's private parts and protected types Date: Mon, 8 Feb 2010 21:48:33 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <7ff3810f-3ee3-4f39-a54c-933ad7d0655c@36g2000yqu.googlegroups.com> <1v2la97s2yyvd.1rcy0ana8mver.dlg@40tude.net> <3bb38996-47f7-4f30-8255-f011501404b5@b10g2000yqa.googlegroups.com> <1qttzk1jbh24i$.xid2h7me3oec.dlg@40tude.net> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265694513 2912 127.0.0.1 (9 Feb 2010 05:48:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Feb 2010 05:48:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z17g2000yqh.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9015 Date: 2010-02-08T21:48:33-08:00 List-Id: > I wonder, too. =A0I don't buy the "compiler efficiency" worries. > That might explain why private parts exist, but it doesn't > explain why they can't be separately compiled (i.e. stored > in separate source files). > > I'd eliminate them altogether, though. OK, but then you have a similar problem to Ada83's syntactically unneeded bodies which Ada95 solved with a pragma. How would you specify that there is a syntactically unneeded private part (i.e. when there is no private type in the spec)? I guess your ideas about specs, bodies, child packages and visibility are very different from Ada as she is. You'd like a different girl, wouldn't you;-)