From: Martin Krischik on
Am 07.06.2010, 18:25 Uhr, schrieb Georg Bauhaus
<rm.dash-bauhaus(a)futureapps.de>:

> What's so special
> about having an option for monitoring the program
> via assertions?

I want an option to define the default via MANIFEST.MF. But then I guess
the designers did not want that to prevent misuse.

Martin
--
Martin Krischik
mailto://krischik(a)users.sourceforge.net
https://sourceforge.net/users/krischik
From: Nasser M. Abbasi on
On 6/5/2010 11:50 AM, Robert A Duff wrote:
> "Nasser M. Abbasi"<nma(a)12000.org> writes:

>
>> I just meant it seems "easier" to use complex numbers in FORTRAN than
>> Ada, just because one does not to do all this instantiating every
>> where.
>

> You don't have to instantiate everywhere. If you're willing to stick
> to the predefined floating point types (Float, Long_Float, etc),
> then you can use Ada.Numerics.Elementary_Functions,
> Ada.Numerics.Long_Elementary_Functions, etc.
>

I am looking at it now, and you are right, there is
Ada.Numerics.Complex_Elementary_Functions and
Ada.Numerics.Complex_Types predefined to float. So no need to instantiate.

But why no predefined package for complex IO also?

Ada.Text_IO.Complex_IO is generic package, and I have to instantiate it
for float to do complex IO? May be I overlooked something.

I am using GNAT 4.3.4

thanks
--Nasser
From: AdaMagica on
On 9 Jun., 08:31, "Nasser M. Abbasi" <n...(a)12000.org> wrote:
> But why no predefined package for complex IO also?
>
> Ada.Text_IO.Complex_IO is generic package, and I have to instantiate it
> for float to do complex IO? May be I overlooked something.

There is Complex_Text_IO, see RM A(2/3) and RM G.1.3(9.1/2)
From: Robert A Duff on
"Nasser M. Abbasi" <nma(a)12000.org> writes:

> But why no predefined package for complex IO also?

These are also defined by the language, and implemented
in GNAT:

Ada.Complex_Text_IO (a-coteio.ads)
Ada.Long_Complex_Text_IO (a-lcteio.ads)
Ada.Long_Long_Complex_Text_IO (a-llctio.ads)
Ada.Short_Complex_Text_IO (a-scteio.ads)

> Ada.Text_IO.Complex_IO is generic package, and I have to instantiate it
> for float to do complex IO? May be I overlooked something.

They're easy to overlook in the RM, because the entire
package spec is not shown -- just a short paragraph
describing what they look like. See G.1.3(9.1/2).

As far as I know, all of the generic numerics stuff
has pre-instantiated versions for Float, Long_Float, etc.

- Bob