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-7-bit Path: g2news2.google.com!postnews.google.com!13g2000yql.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types Date: Fri, 21 Nov 2008 04:00:50 -0800 (PST) Organization: http://groups.google.com Message-ID: <4d75603c-2f61-46c9-8c62-df4b6f49b2f7@13g2000yql.googlegroups.com> References: <20081115101632.5f98c596@cube.tz.axivion.com> <3f77e490-2f54-4441-828e-6c6e68d245df@a17g2000prm.googlegroups.com> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1227268850 21764 127.0.0.1 (21 Nov 2008 12:00:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 Nov 2008 12:00:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 13g2000yql.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20070718 Red Hat/1.5.0.12-3.el5 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3702 Date: 2008-11-21T04:00:50-08:00 List-Id: On Nov 21, 8:25 am, a...@anon.org (anon) wrote: > Adam, > > Try an explain this. 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. Your reasoning is incorrect because (a) it is impossible to "fully test" a program as complex as a compiler and (b) testing can prove the presence of bugs but not their absence. Therefore, even though GNAT 3.15p did pass the ACATS and many thousands of tests beyond the ACATS, you may not assume that it contains no bugs. In fact, during my years maintaining GNAT 3.15p in Debian, various people reported approximately 110 bugs in it. A few of these bugs are still present in the latest releases of GNAT; yet, the ACATS does not find them. It would be nice to add a test to the ACATS so that compilers that accept T'Base where T is non-scalar get rejected. -- Ludovic Brenta.