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!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Sat, 8 May 2010 19:20:40 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <1ojboulapml8w$.1w5gfpk45kh72.dlg@40tude.net><82ljbwm30w.fsf@stephe-leake.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1273364442 15038 69.95.181.76 (9 May 2010 00:20:42 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sun, 9 May 2010 00:20:42 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:11419 Date: 2010-05-08T19:20:40-05:00 List-Id: "Simon Wright" wrote in message news:m2k4rfjruq.fsf@pushface.org... > Robert A Duff writes: > >> Now why isn't this: >> >> Put_Line ((Finish_Time - Start_Time)'Img); >> >> legal? > > Can the compiler be expected to work out what that function "-" is? Well, the prefix of an attribute is almost always an "any type" context. (It surely is for this attribute). So the answer depends on whether Start_Time and Finish_Time and "-" are overloaded. If these are two objects, probably there is only one matching "-". If they are overloaded functions, all bets are off. So this probably would work *some* of the time. Hard to say if it is worth it to make it work. Randy.