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,16e06ab8237bab07 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.90.37 with SMTP id bt5mr4640053pab.40.1351032771115; Tue, 23 Oct 2012 15:52:51 -0700 (PDT) Received: by 10.68.212.72 with SMTP id ni8mr4346219pbc.14.1351032771096; Tue, 23 Oct 2012 15:52:51 -0700 (PDT) Path: s9ni23372pbb.0!nntp.google.com!kr7no8807013pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 23 Oct 2012 15:52:50 -0700 (PDT) In-Reply-To: <87r4oscx42.fsf@ludovic-brenta.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=118.209.197.202; posting-account=l8GBMwoAAADCbqdOJSbg4dBRqkD14dJd NNTP-Posting-Host: 118.209.197.202 References: <8391f2d1-b4c7-4b12-bc16-1419a1aa9739@googlegroups.com> <87wqykd1wv.fsf@ludovic-brenta.org> <0360d84c-ef42-4107-b837-4063da273ad8@googlegroups.com> <87r4oscx42.fsf@ludovic-brenta.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <63a04c49-7453-402a-bf69-0b645c419e63@googlegroups.com> Subject: Re: Is this a bug in Ada.Numerics? From: Leo Brewin Injection-Date: Tue, 23 Oct 2012 22:52:51 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-10-23T15:52:50-07:00 List-Id: Hi Ludovic, I thought I was getting on top of this but then I ran a small experiment that doesn't make sense (to me). I decided to make my own generic pacakges, ada_complex_types and ada_complex_functions, as clones of Ada.Numerics.Generic_Complex_Types and Ada.Numerics.Generic_Complex_Elementary_Functions. I had to add a couple of lines to the body of my packages, in particular I added these lines to ada_complex_functions.adb Argument_Error : Excpetion; PI : constant := 3.14159; and this line to ada_complex_types.adb Argument_Error : Exception; These changes were needed to allow compilation of the packages. Othe than the above small changes my generic packages are indetical to their Ada.Numerics counterparts. I then used these pacakges in my previous example. I had expected no change in the errors reported by the compiler. But that is not what happens. I find that with or without the "subtype Complex ..." declaration the compiler reports no errors. Am I missing something here? Sorry to be a pain... Cheers, Leo