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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,17506301c0751a38,start X-Google-Attributes: gid103376,public From: Pascal MALAISE Subject: Need exception despite Machine_Overflows is false Date: 1998/12/17 Message-ID: <36796140.62B2788C@magic.fr>#1/1 X-Deja-AN: 423363950 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ulysse.magic.fr X-Trace: ulysse.magic.fr 913924416 2791 127.0.0.1 (17 Dec 1998 19:53:36 GMT) Organization: Magic On Line Mime-Version: 1.0 NNTP-Posting-Date: 17 Dec 1998 19:53:36 GMT Newsgroups: comp.lang.ada Date: 1998-12-17T19:53:36+00:00 List-Id: Using gnat 3.10p on Linux, I make several computations on long_float (s), then use a text_io.float_io to display the results => NaN***** There is an overflow, Gnat uses the libc, long_float'Machine_Overflows is false... fair enough. What can I do to get a constraint_error raised when there is an overflow? Don't tell me that I have to check, via an interface to C finite(), the result of each operation! -- Pascal MALAISE (priv) mailto:malaise@magic.fr (prof) mailto:malaise@fr.airsysatm.thomson-csf.com