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=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!seas.gwu.edu!mfeldman From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: integer'image Message-ID: <2571@sparko.gwu.edu> Date: 18 Jan 91 20:32:48 GMT References: <2563@sparko.gwu.edu> <10140@as0c.sei.cmu.edu> Reply-To: mfeldman@seas.gwu.edu () Organization: The George Washington University, Washington D.C. List-Id: In article <10140@as0c.sei.cmu.edu> ae@sei.cmu.edu (Arthur Evans) writes: >An Ada 9X Revision Request asking to eliminate this space was rejected >by the Requirements Team. I don't speak for the Team. However, I've >always assumed that the space was for symmetry with negative numbers. >That is, +N and -N always have a 'image of the same width. This is utter nonsense. Why not give me a width parameter such as I have in Integer_IO already? I've always envisioned the 'image and 'value attributes as, inter alia, a baseline of operations with which to WRITE I/O routines, equivalent to the atoi and itoa calls in the C library. I realize you don't speak for the team, so this flame is not aimed at you, but flame it is. If I can't get a flush-left string out of 'image, it's virtually useless. And if 'image and 'value aren't symmetric, why not? 'value reads past whitespace; why should 'image give me gratuitous whitespace? Look at C. Let me do my own padding, guys. The nonuniformity in attributes is utterly maddening in Ada. I'll give more examples sometime. > >Yes, getting rid of that space is a bother. Better is to instantiate >Integer_IO. Yeah, right. So what good is 'image? Any comments from Team members? Mike Feldman