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,edb6dd3a3f93fcc0 X-Google-Attributes: gid103376,public From: mgk25@cl.cam.ac.uk (Markus Kuhn) Subject: Re: trunc Date: 1999/03/19 Message-ID: <7ctn9c$qtg$1@pegasus.csx.cam.ac.uk>#1/1 X-Deja-AN: 456500650 References: <7crcfm$tp0$1@nnrp1.dejanews.com> <7ctjsj$b20@top.mitre.org> Organization: U of Cambridge Computer Lab, UK Newsgroups: comp.lang.ada Date: 1999-03-19T00:00:00+00:00 List-Id: mfb@mbunix.mitre.org (Michael F Brenner) writes: |> y:=x'floor; -- Postcondition: Y is now the whole-number of X GNAT 3.11p says "prefix of 'floor' attribute must be a type" and the ARM agrees. Correct would have been: y := float'floor(x); Floor is a function, therefore it should look like one. Your syntax looks like what might have been a convenient abbreviation, but Ada is not about abbreviations. Markus -- Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK Email: mkuhn at acm.org, WWW: