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: 103376,3323ee59cb66d2b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <43E5B156.4040400@obry.net> Date: Sun, 05 Feb 2006 09:03:34 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: "jimmaureenrogers@worldnet.att.net" Subject: Re: do while loop help ( newbie) References: <1139094979.043765.42770@g14g2000cwa.googlegroups.com> <1139104892.388202.308400@g14g2000cwa.googlegroups.com> In-Reply-To: <1139104892.388202.308400@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 05 Feb 2006 09:03:34 CET NNTP-Posting-Host: 82.124.247.45 X-Trace: 1139126614 news.wanadoo.fr 18322 82.124.247.45:3024 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:2783 Date: 2006-02-05T09:03:34+01:00 List-Id: jimmaureenrogers@worldnet.att.net a �crit : > You should declare a named subype and then instantiate the generic > package Ada.Text_IO.Integer_IO for that subtype. > > subtype Four_Digits_Max is Natural range 0..9999; > > package Num_IO is new Ada.Text_Io.Integer_IO(Four_Digits_Max); No. Since it is a subtype just use Ada.Integer_Text_IO. No need to instantiate anything. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595