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 X-Google-Thread: 103376,5f764f1f7822ab9c X-Google-Attributes: gid103376,public From: David Kristola Subject: Re: Top 10 Language Constructs (Ada) Date: 2000/07/26 Message-ID: <01HW.B5A402550056033C078EC71C@news.pacbell.net>#1/1 X-Deja-AN: 650909853 Content-Transfer-Encoding: 8bit References: <8kmjja$l5h$1@pollux.ip-plus.net> <3970F56F.F3A70FAD@icdc.com> <01HW.B59982450058903A078EC70C@news.pacbell.net> <39751555.4E40A4A7@lmco.com> <8l21od$mkr@newsserv.vs.dasa.de> <8lk9hm$s21@newsserv.vs.dasa.de> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 964604989 63.194.212.92 (Wed, 26 Jul 2000 02:49:49 PDT) Organization: heaps of stacks User-Agent: Hogwasher 2.0 (Macintosh) MIME-Version: 1.0 NNTP-Posting-Date: Wed, 26 Jul 2000 02:49:49 PDT Newsgroups: comp.lang.ada Date: 2000-07-26T00:00:00+00:00 List-Id: On Tue, 25 Jul 2000 7:47:13 -0700, Dr. Joachim Schr�er wrote (in message <8lk9hm$s21@newsserv.vs.dasa.de>): > Keith Thompson schrieb in im Newsbeitrag: > yec1z0m29bg.fsf@king.cts.com... >> "Dr. Joachim Schr�er" writes: >> [...] >>> type Plasma_Volts_Type is delta 2.0**(-13) range -4.0 .. 4.0 - 2.0**(-13); >>> for Plasma_Volts_Type'Size use 16; >>> >>> And if the required range and the 'delta allow 'delta < 'small you have to >>> write a rep-clause for 'small like: >>> >>> for Plasma_Volts_Type'Small use 2.0**(-13); >> >> Or better yet: >> >> for Plasma_Volts_Type'Small use Plasma_Volts_Type'Delta; > > At least with GNAT 3.12p this statement does not compile. The error message > is: > > testfixpoint.adb:9:01: representation item appears too late > testfixpoint.adb:9:01: warning: no more representation items for type > "Plasma_Volts_Type" defined at line 7 > > Joachim Schr�er > Rational Apex says pretty much the same thing. As specified, i'm pretty sure every possible bit pattern within the 16 bit field is a valid Plasma_Volts_Type. Not that it matters much, as per other requirements, the only value i can output is 0.0, which properly maps to all bits being zero. -- --djk, keeper of arcane lore & trivial fluff Home: David95036 plus 1 at america on-line Spam: goto.hades@welovespam.com