comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcqada@earthlink.net>
Subject: Re: Binary value
Date: Mon, 02 Apr 2001 12:49:56 GMT
Date: 2001-04-02T12:49:56+00:00	[thread overview]
Message-ID: <3AC867F4.C5DB44A2@earthlink.net> (raw)
In-Reply-To: wccr8zc2s5v.fsf@world.std.com

Robert A Duff wrote:
> 
> "Phaedrus" <phaedrusalt@hotmail.com> writes:
> 
> > I've often thought that the "default base" in text_io should allow you to set
> > the default INPUT base, too, so that users of it could just specify that they
> > wanted the user to be able to plug in a number in a certain base without
> > using the base and pound signs.  Unfortunately, it doesn't work that way.
> 
> You can read the thing as a string, and then say something like
> T'Image("2#" & The_Input_String & "#").

Yeah, I would either do this (except use 'Value instead of 'Image, like
David mentioned :-), or Get from a string.

I rarely do direct numeric input, especially if it's interactive.  I use
Get_Line, which gives me a chance to more simply handle things like C/Rs
or do some kind of input validation, and then extract the value from
that string.

Marc



  parent reply	other threads:[~2001-04-02 12:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-30 16:10 Binary value Bob Gratton
2001-03-30 16:54 ` Marin David Condic
2001-03-30 17:16   ` Bob Gratton
2001-03-30 17:41     ` Marin David Condic
2001-03-30 18:20       ` Bob Gratton
2001-03-30 19:58         ` Marin David Condic
2001-03-30 18:21     ` chris.danx
2001-03-30 20:03       ` Marin David Condic
2001-03-30 20:32       ` Smark
2001-03-30 20:45         ` Smark
2001-03-30 21:19           ` chris.danx
2001-03-31  5:23       ` Phaedrus
     [not found]         ` <3AC5C72F.8108A613@earthlink.net>
2001-04-01 19:52           ` Phaedrus
2001-04-01 22:04             ` Robert A Duff
2001-04-01 22:35               ` David C. Hoos, Sr.
2001-04-02 12:49               ` Marc A. Criley [this message]
2001-04-02 13:33             ` chris.danx
2001-04-02 14:33             ` Marin David Condic
2001-04-02 16:43       ` Jeffrey Carter
2001-04-02 17:36         ` chris.danx
2001-04-02 18:03           ` Robert A Duff
2001-04-02 17:54         ` Robert A Duff
2001-03-30 17:03 ` Larry Hazel
replies disabled

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