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,edfa88b682578b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-25 11:26:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Overhead for type conversions? Date: Fri, 25 Jul 2003 13:28:05 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:40815 Date: 2003-07-25T13:28:05-05:00 List-Id: "Bobby D. Bryant" wrote in message news:pan.2003.07.25.01.01.43.5699@mail.utexas.edu... > > Given these declarations - > > type f1 is new float; > type f2 is new float; > > function "*"( left : in f1; right : in f2 ) return f1 is > begin > return( left * f1( right ) ); > end "*"; Matt answered your original question correctly, I think. But I wanted to point out that you are likely to get into trouble with expressions containing literals if you actually have such declarations in your program. V1, V2 : F1; V2 := V1 * 12.0; -- Ambiguous (12.0 could have type F1 or F2). V2 := V1 * F1'(12.0); -- OK. So you might have to modify essentially all literal uses in that code. Randy.