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: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Fri, 07 May 2010 16:10:24 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1ojboulapml8w$.1w5gfpk45kh72.dlg@40tude.net> <82ljbwm30w.fsf@stephe-leake.org> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1273263011 7700 192.74.137.71 (7 May 2010 20:10:11 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 7 May 2010 20:10:11 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:UQy0FqJLP21dCBaZj7rkLg1NLBI= Xref: g2news2.google.com comp.lang.ada:11383 Date: 2010-05-07T16:10:24-04:00 List-Id: Simon Wright writes: > Sometimes the 'Image way is useful even in that sort of context: > Duration'Image (Finish_Time - Start_Time) > avoids the need for a local variable which 'Img would require. By the way, I think this: Put_Line (Duration'(Finish_Time - Start_Time)'Img); will be legal in Ada 2012. Well, the 'Img is still a GNAT-specific thing, but I'm talking about the ability to use a qualified expression as the prefix of an attribute. Now why isn't this: Put_Line ((Finish_Time - Start_Time)'Img); legal? I don't know, but the language is moving in that direction -- maybe by 2099, the syntactic distinction between expression and name (and the semantic distinction between value and object) will disappear entirely. - Bob