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.1 required=5.0 tests=BAYES_20,FROM_ADDR_WS, INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!usc!rutgers!mcnc!uvaarpa!vger.nsu.edu!g_harrison From: g_harrison@vger.nsu.edu ((George C. Harrison) Norfolk State University) Newsgroups: comp.lang.ada Subject: Re: integer'image Message-ID: <499.279746ef@vger.nsu.edu> Date: 18 Jan 91 23:05:18 GMT References: <2563@sparko.gwu.edu> List-Id: 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