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,228dbf2f126edf08 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-19 07:30:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: ADA and return functions (Strings) Date: 19 May 2002 07:30:29 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205190630.237196b3@posting.google.com> References: <3ce75220@news.comindico.com.au> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021818629 18115 127.0.0.1 (19 May 2002 14:30:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 19 May 2002 14:30:29 GMT Xref: archiver1.google.com comp.lang.ada:24376 Date: 2002-05-19T14:30:29+00:00 List-Id: "David C. Hoos, Sr." wrote in message news:... > The best way to do this without spaces is something like this: > > return Ada.Strings.Fixed.Trim (Version.Major'img, Ada.Strings.Left) & > "." & Ada.Strings.Fixed.Trim (Version.Minor'img, Ada.Strings.Left); Seems very heavy to drag in the whole of Ada.Strings.Fixed for such a trivial task, and even heavier to call Trim repeatedly. Why not just write a little function called Semsible_Image that you then call. Actually you can use the name Image for this function. P.S. This was clearly a bad design decision in Ada, it had in mind some kind of columnar output thought, but that was silly in context. But we are stuck now because people depend on the existing annoying definition.