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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT 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: "Dr. Joachim Schr�er" Subject: Re: Top 10 Language Constructs (Ada) Date: 2000/07/25 Message-ID: <8lk9hm$s21@newsserv.vs.dasa.de>#1/1 X-Deja-AN: 650562705 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> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Daimler-Benz Aerospace X-MSMail-Priority: Normal Newsgroups: comp.lang.ada Date: 2000-07-25T00:00:00+00:00 List-Id: 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