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 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 08 Sep 2006 20:34:30 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <45016cb7$1_4@news.bluewin.ch> Subject: Re: Universal float or not - who's right ? Date: Fri, 8 Sep 2006 20:35:54 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-Z7m12jGzYoVmTCS8or7EMQEBQXsAbbMCcFUBUWfHRJUpWDZ9ExvLYxsRpfUMlYQHNy6f0r0qBJIt47q!n0RBx2tdmWLfhdbsMMXkhAKgp8RPKI5R8tMInKdMG6r2kNx/wjtaJEZml8qvCPpcdIeN5g2Aw2PN!w05DHjBduRuNow== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:6530 Date: 2006-09-08T20:35:54-05:00 List-Id: "Gautier" wrote in message news:45016cb7$1_4@news.bluewin.ch... ... > 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 Compiler C is wrong, the expression resolution for D and the parameter of FPe should be the same. The short reason is that expressions can only have a universal type if they are in a context that allows one (such as a named number); otherwise *operators* (as opposed to literals) must have the correct type. Adam explains why in detail. Randy.