comp.lang.ada
 help / color / mirror / Atom feed
From: "Grein, Christoph" <christoph.grein@eurocopter.com>
Subject: Re: Newbie question on Ada TExt_IO
Date: Mon, 7 Oct 2002 10:27:21 +0200 (MET DST)
Date: 2002-10-07T10:27:21+02:00	[thread overview]
Message-ID: <mailman.1033979582.4852.comp.lang.ada@ada.eu.org> (raw)

> > subtype Valid_Number is Integer range 1 .. 6;
> > N : Valid_Number;
> > ...
> > N := Integer'Value (Input (Input'First .. Last) );
> 
> Should this be
> 
> N := Valid_Number'Value (Input (Input'First .. Last));
> 
> ?
> 
> (Pedantor is in the building)

Attributes can use as prefix either the subtype or the type (which in fact is 

is the first named subtype) without difference.



             reply	other threads:[~2002-10-07  8:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-07  8:27 Grein, Christoph [this message]
2002-10-07 11:48 ` Newbie question on Ada TExt_IO Fraser Wilson
2002-10-07 12:46   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-10-07  6:01 Grein, Christoph
2002-10-03 18:20 Justin
2002-10-03 18:50 ` Matthew Heaney
2002-10-03 19:05 ` Jeffrey Carter
2002-10-03 19:35 ` David C. Hoos
2002-10-03 19:35 ` tmoran
2002-10-03 19:43 ` Preben Randhol
2002-10-03 19:55   ` Matthew Heaney
2002-10-03 20:07     ` Preben Randhol
2002-10-04  2:42 ` SteveD
2002-10-04 17:49   ` Justin Birtwell
2002-10-04 18:00     ` David C. Hoos
2002-10-04 18:04       ` Preben Randhol
2002-10-04 18:00     ` Preben Randhol
2002-10-04 18:02       ` Preben Randhol
2002-10-04 18:34     ` tmoran
2002-10-04 17:34 ` Justin Birtwell
2002-10-04 17:58   ` Preben Randhol
2002-10-04 18:13   ` tmoran
2002-10-04 20:07   ` Jeffrey Carter
2002-10-07  8:26     ` Fraser Wilson
2002-10-07 19:44       ` Jeffrey Carter
2002-10-05  2:43   ` SteveD
2002-10-05  5:25     ` tmoran
replies disabled

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