From: Pascal Obry <pascal@obry.net>
To: Georg <nobody@nowhere.com>
Subject: Re: BASIC_NUM_IO
Date: Mon, 01 Jun 2009 10:13:29 +0200
Date: 2009-06-01T10:13:06+02:00 [thread overview]
Message-ID: <4A238DA9.6070404@obry.net> (raw)
In-Reply-To: <78hfulF1m321pU2@mid.individual.net>
Georg,
> in my Ada books I find the with-clause "with BASIC_NUM_IO; use
> BASIC_NUM_IO".
This is not a standard Ada package. It probably comes with the book and
used on the examples.
> The following program
>
> with basic_num_io; use basic_num_io;
>
> procedure test_ranges is
> begin
> put_line(short_integer'size);
> end test_ranges;
>
> does not compile because the compiler complaints that the package
> "basic_num_io" does not exist.
>
> Is there a replacement for this package in GNAT? How can I print number
> on the screen instead?
Ada.Interger_Text_IO.
Or the generic Ada.Text_IO.Integer_IO that you can instantiate with your
own integer type.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
next prev parent reply other threads:[~2009-06-01 8:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-01 7:57 BASIC_NUM_IO Georg
2009-06-01 8:13 ` Pascal Obry [this message]
2009-06-01 8:18 ` BASIC_NUM_IO Martin
2009-06-01 8:18 ` BASIC_NUM_IO anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox