comp.lang.ada
 help / color / mirror / Atom feed
From: g_harrison@vger.nsu.edu ((George C. Harrison) Norfolk State University)
Subject: Re: integer'image
Date: 18 Jan 91 23:05:18 GMT	[thread overview]
Message-ID: <499.279746ef@vger.nsu.edu> (raw)
In-Reply-To: 2563@sparko.gwu.edu

In article <2563@sparko.gwu.edu>, mfeldman@seas.gwu.edu (Michael Feldman) writes:
> In answering the question about cursor control, George Harrison and I used
> 2 different techniques to get the row and column values sent to the 
> terminal. I assumed an Integer_IO instantiation; he (probably rightly) did
> not. But all this makes me wonder why on earth Integer'Image should
> decide to prepend a blank to the numeric string. To delete this blank,
> just to get a left-adjusted numeric string, requires overkill code of
> one kind or another, as George's solution makes abdundantly clear.
> 

That's exactly right.  Do-While Jones in his _Ada in Action_ complains about
the same thing.  He then develops a package that even does essentially
Float'Image, etc.  I highly recommend the book for good reading with his [very]
dry sense of humor.  

I would like to hear if anyone feels (like me) that this book is somewhat of a
real treasure.  -- or otherwise.

George....

--------------------------------------------------------------------------
-- George C. Harrison -------------- || -- Overworked, Underpaid, --------
---|| Professor of Computer Science  || -- Unappreciated, but enjoying ---
---|| Norfolk State University, ---- || -- it all. -----------------------
---|| 2401 Corprew Avenue, Norfolk, Virginia 23504 -----------------------
---|| INTERNET:  g_harrison@vger.nsu.edu ---------------------------------
-- ||                 Pray for Peace and a Quick End 

  parent reply	other threads:[~1991-01-18 23:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2563@sparko.gwu.edu>
1991-01-18 19:13 ` integer'image Arthur Evans
1991-01-18 20:32   ` integer'image Michael Feldman
1991-01-20  2:54   ` integer'image       Hoysch
1991-01-20 23:10     ` integer'image Michael Feldman
1991-01-21 15:23     ` integer'image Jerry Callen
1991-01-21 19:41       ` integer'image Steven V. Case
1991-01-21 21:54         ` integer'image Jerry Callen
1991-01-22 19:21         ` integer'image Michael Feldman
1991-01-22 21:37           ` integer'image Richard Pattis
1991-01-23 16:29             ` integer'image Michael Feldman
1991-01-18 23:05 ` (George C. Harrison) Norfolk State University [this message]
1991-01-19 10:51 ` integer'image Jean Pierre Rosen
1991-01-28  3:27 integer'image Jim West (Stealth Contractor)
1991-01-28 15:04 ` integer'image Michael Feldman
1991-01-28 23:09   ` integer'image (George C. Harrison) Norfolk State University
1991-01-29 19:55     ` integer'image stephen edwards
  -- strict thread matches above, loose matches on Subject: below --
2000-04-17  0:00 integer'image NANCY HEHIR
2000-04-17  0:00 ` integer'image Ted Dennison
2000-04-18  0:00   ` integer'image Marin D. Condic
2000-04-18  0:00     ` integer'image Ted Dennison
2000-04-18  0:00       ` integer'image Marin D. Condic
2000-04-17  0:00 ` integer'image tmoran
2000-04-19  0:00 ` integer'image MaggieJohn
replies disabled

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