From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Interfacing to C and long long data type
Date: Fri, 27 Jun 2008 21:29:51 +0100
Date: 2008-06-27T21:29:51+01:00 [thread overview]
Message-ID: <m2vdzu8vuo.fsf@mac.com> (raw)
In-Reply-To: 67af3e06-1e93-4aa4-8182-fa0965285bf6@s21g2000prm.googlegroups.com
Adam Beneschan <adam@irvine.com> 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.
next prev parent reply other threads:[~2008-06-27 20:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 15:23 Interfacing to C and long long data type Maciej Sobczak
2008-06-25 16:55 ` Keith Thompson
2008-06-25 21:35 ` Maciej Sobczak
2008-06-26 8:53 ` Sébastien Morand
2008-06-26 10:19 ` Georg Bauhaus
2008-06-26 11:59 ` Maciej Sobczak
2008-06-27 14:31 ` Sébastien Morand
2008-06-27 16:11 ` Dmitry A. Kazakov
2008-06-27 18:53 ` Adam Beneschan
2008-06-27 20:29 ` Simon Wright [this message]
2008-06-27 20:46 ` Dmitry A. Kazakov
2008-06-25 19:08 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox