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,9b7d3a51d0d8b6ee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!j38g2000yqa.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types Date: Fri, 21 Nov 2008 02:11:04 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <20081115101632.5f98c596@cube.tz.axivion.com> <3f77e490-2f54-4441-828e-6c6e68d245df@a17g2000prm.googlegroups.com> 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 1227262264 6552 127.0.0.1 (21 Nov 2008 10:11:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 Nov 2008 10:11:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j38g2000yqa.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),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.2.3963) Xref: g2news1.google.com comp.lang.ada:2727 Date: 2008-11-21T02:11:04-08:00 List-Id: > Since I downloaded my binary version of GNAT-3.15p > direct from Adacore. And someone else has said the GNAT-3.15p is old but > it has been fully tested and found to be correct. > So, that means that time Adacore agreed that "Base" attribute could be > used outside of scalars and that was years after the RM and AARM for > Ada 95 was written. Having tested and delivered a compiler does by no means imply that there are no bugs in it. Implying such a statement is silly. License agreements take care of this. > First, there is a =A0"interesting non-scalar attributes defined for an > unconstrained composite or access subtype", it used in "Object-oriented > programming" (OOP). But back in 90s, Ada was a late starter for OOP and > even with the Ada 2005 OOP extensions some might still say its late to > the plate or should that be table. Ada was the first ISO standardized OO language (admittedly, there were many OO languages before, but none standardized). > Secondly, there is another side to 3.2.3 (8.a) and others listed in the > AARM, and that is the clarifying statement "incompatibilities with Ada > 83". But that does not say that "X'Base" or "T'Base" can not exist. If > that was the case, a form of this statement would also be listed in > "Annex J: Obsolescent Features" of the official RM. Please see: RM 1.1.1(6) Permissible variations 1.1.2(36) Implementation permissions 1.1.3(6) No variations So there is nowhere a statement that 'Base may exist for other types. Implementations may define other attributes, but they are not allowed to use attribute names defined in the standard. So please accept that if some compilers accept 'Base, this is a mistake!