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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7af8cf189ac06049,start X-Google-Attributes: gid103376,public From: Andrew Lynch Subject: Ada83: Attribute value for a float? Date: 1997/07/28 Message-ID: <33DC6CA2.1670@cci.de>#1/1 X-Deja-AN: 259724635 Distribution: world Organization: Competence Center Informatik GmbH Reply-To: lynch@cci.de Newsgroups: comp.lang.ada Date: 1997-07-28T00:00:00+00:00 List-Id: Hi, we've just started "recycling" some old Ada83 code, which compiles fine using GNAT, both with and without the -gnat83 switch. When I took the code home and tried to compile it on my Linux box with my universities Ada83 compiler it complained about the following: ... some_float := FLOAT'value(some_string); ... Looking in the LRMs I found the following: Ada83 LRM Annex A: P'VALUE For a prefix P that denotes a discrete type or subtype... Ada95 LRM Annex K: S'Value For every scalar subtype S... IIRC a float is scalar, but not discrete which I would take to mean that Float'Value is not legal Ada83. The code was aparently developed using the Telesoft Ada compiler around 1992/1993 and also compiled on a number of other Ada83 compilers (so say the guys who've been here longer than I have...) So is this valid Ada83, or maybe an extension that was supported by many compiler vendors (and then made it into Ada95)? A definite answer/reference would be appreciated! Andrew.