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 X-Google-Thread: 103376,a96b706fab1e8c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 05:50:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3AC867F4.C5DB44A2@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Binary value References: <9e2x6.568987$JT5.15730002@news20.bellglobal.com> <9a2dnu$sff$1@nh.pace.co.uk> <3AC5C72F.8108A613@earthlink.net> <2GLx6.16115$aP5.1507862@newsread2.prod.itd.earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 02 Apr 2001 12:49:56 GMT NNTP-Posting-Host: 63.178.185.119 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 986215796 63.178.185.119 (Mon, 02 Apr 2001 05:49:56 PDT) NNTP-Posting-Date: Mon, 02 Apr 2001 05:49:56 PDT Xref: supernews.google.com comp.lang.ada:6331 Date: 2001-04-02T12:49:56+00:00 List-Id: Robert A Duff wrote: > > "Phaedrus" 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