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,c6f0d0c4aaf03392,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 08 Sep 2006 15:14:49 +0200 From: Gautier User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Universal float or not - who's right ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.2.29.203 X-Original-NNTP-Posting-Host: 85.2.29.203 Message-ID: <45016cb7$1_4@news.bluewin.ch> X-Trace: news.bluewin.ch 1157721271 85.2.29.203 (8 Sep 2006 15:14:31 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:6521 Date: 2006-09-08T15:14:49+02:00 List-Id: Hullo - here is a nice case, with a trivial workaround given first, where 3 compiler differs. Question to the Ada RM exegetes: who is right ? package FF is type FFloat is new Float; end; with FF; procedure Beauripple is generic type Num is digits <>; x : Num; package P is end; c: constant:= 2.0**4; package FPc is new P(FF.FFLoat,c); -- Passes on compilers A,B,C - as expected d: constant FF.FFLoat:= 2.0**4; -- Fails on compiler A,B,C -- "**" is not visible, an "use FF;" is missing package FPe is new P(FF.FFLoat,2.0**4); -- ** A,B,C differ: -- Passes on C: (2.0**4) probably taken as universal float -- Fails on compiler A,B: same reason as for constant d begin null; end; ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!