comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
To: "jimmaureenrogers@worldnet.att.net" <jimmaureenrogers@worldnet.att.net>
Subject: Re: do while loop help ( newbie)
Date: Sun, 05 Feb 2006 09:03:34 +0100
Date: 2006-02-05T09:03:34+01:00	[thread overview]
Message-ID: <43E5B156.4040400@obry.net> (raw)
In-Reply-To: <1139104892.388202.308400@g14g2000cwa.googlegroups.com>

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



  reply	other threads:[~2006-02-05  8:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-04 23:16 do while loop help ( newbie) isaac2004
2006-02-05  2:01 ` jimmaureenrogers
2006-02-05  8:03   ` Pascal Obry [this message]
2006-02-05 12:18   ` Stephen Leake
2006-02-05  2:07 ` Jeffrey R. Carter
     [not found] ` <bjfau11bp7g4b5id8vprbai6bc81qfgr96@4ax.com>
2006-02-05  4:39   ` isaac2004
2006-02-05 21:25     ` Björn Persson
2006-02-05 22:25       ` Jeffrey R. Carter
2006-02-06  1:01         ` Björn Persson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox