From: Leo Brewin <leo.brewin@internode.on.net>
Subject: Re: Is this a bug in Ada.Numerics?
Date: Tue, 23 Oct 2012 15:52:50 -0700 (PDT)
Date: 2012-10-23T15:52:50-07:00 [thread overview]
Message-ID: <63a04c49-7453-402a-bf69-0b645c419e63@googlegroups.com> (raw)
In-Reply-To: <87r4oscx42.fsf@ludovic-brenta.org>
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
next prev parent reply other threads:[~2012-10-23 22:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-21 0:37 Is this a bug in Ada.Numerics? Leo Brewin
2012-10-21 1:54 ` Yannick Duchêne (Hibou57)
2012-10-21 2:39 ` Leo Brewin
2012-10-21 1:55 ` Ludovic Brenta
2012-10-21 2:32 ` Leo Brewin
2012-10-21 3:39 ` Ludovic Brenta
2012-10-21 3:54 ` Leo Brewin
2012-10-21 8:59 ` Georg Bauhaus
2012-10-23 15:48 ` Vincent Marciante
2012-10-23 22:52 ` Leo Brewin [this message]
2012-10-23 23:09 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox