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-Thread: 103376,826cd690cb6a7585 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 31 Aug 2011 08:16:35 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: The simple Image issue (was: Address and bit mask) References: <904e717e-da4c-46c9-bbc2-4bae8368d459@l4g2000vbv.googlegroups.com> <4e5d139f$0$6575$9b4e6d93@newsspool3.arcor-online.net> <3756bc0c-d938-4b45-baa1-b80e59d58055@a10g2000prn.googlegroups.com> <1a879va9fjuwo.1r1b6vbp45lx5.dlg@40tude.net> In-Reply-To: <1a879va9fjuwo.1r1b6vbp45lx5.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4e5dd1c1$0$6638$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 31 Aug 2011 08:16:33 CEST NNTP-Posting-Host: 6886817f.newsspool2.arcor-online.net X-Trace: DXC=hnZTPdPB5TFE4ZB2flKORAA9EHlD;3YcB4Fo<]lROoRA8kFejVHP>3aPJ0mTXIgCiZ On 30.08.11 21:56, Dmitry A. Kazakov wrote: > On Tue, 30 Aug 2011 12:31:55 -0700 (PDT), Adam Beneschan wrote: > >> I actually think Ada has a bit of a weakness in this regard. The >> ability to output and/or create strings that have data interpolated in >> them is useful, but doing so with Ada is somewhat clunky. Ada does >> provide a string concatenation function, which C doesn't have, and >> that could help, except that (1) there's no *function* defined in Ada >> that returns the image of an integer in a given base (and if there >> were, I'd want it to have options to control whether the 16#...# were >> present or not, whether letters were in upper or lower case, and >> whether and how far we add leading zeroes), and (2) the 'Image >> attribute function on integer types has the annoying problem of the >> extra space at the front of nonnegative integers. With those fixed, >> it would eliminate an objection I'm sure other C programmers trying to >> use Ada have run into. > > The most annoying is that you have to specify the [sub]type T'Image(X). It > should have been X'Image or Image(X). In which way would you change T'Value for symmetry?