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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,995362da150dc3a9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!news2.euro.net!zen.net.uk!demorgan.zen.co.uk!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing to C and long long data type Date: Fri, 27 Jun 2008 21:29:51 +0100 Organization: Pushface Message-ID: References: <4abde3e1-3c8c-4b01-b63b-d29e7039070b@f36g2000hsa.googlegroups.com> <48635909.8060204@gmail.com> <70e23582-fd3c-4248-b0d6-ec7a3a0f9aed@p25g2000hsf.googlegroups.com> <4ji77y6wxamy$.t0e9a057c44p.dlg@40tude.net> <67af3e06-1e93-4aa4-8182-fa0965285bf6@s21g2000prm.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1214598591 23861 62.49.19.209 (27 Jun 2008 20:29:51 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 27 Jun 2008 20:29:51 +0000 (UTC) Cancel-Lock: sha1:RbJxq2/IfGU84iH1W5WI7MP7gs0= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Xref: g2news1.google.com comp.lang.ada:919 Date: 2008-06-27T21:29:51+01:00 List-Id: Adam Beneschan writes: > I think the idea here is that the value of a portable program that > does not have the functionality you need is 0.0, and so even though > the functionality of the non-portable value is finite, when you > divide to get a ratio you will get an infinite answer. Well, > actually, you'll get Constraint_Error but that's just a > nitpick...... Depends on your compiler and the result type -- with GNAT, a destination subtype of unconstrained Float will silently give you Inf (which is invalid), whereas a destination subtype eg subtype F is Float range Float'First .. Float'Last will give you Constraint_Error.