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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!193.252.117.184.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4A238DA9.6070404@obry.net> Date: Mon, 01 Jun 2009 10:13:29 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Georg Subject: Re: BASIC_NUM_IO References: <78hfulF1m321pU2@mid.individual.net> In-Reply-To: <78hfulF1m321pU2@mid.individual.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 01 Jun 2009 10:13:06 CEST NNTP-Posting-Host: 90.23.186.154 X-Trace: 1243843986 news.orange.fr 17093 90.23.186.154:9939 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:6154 Date: 2009-06-01T10:13:06+02:00 List-Id: 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