comp.lang.ada
 help / color / mirror / Atom feed
From: David Kristola <David95037@See-My.Sig>
Subject: Re: Top 10 Language Constructs (Ada)
Date: 2000/07/26
Date: 2000-07-26T00:00:00+00:00	[thread overview]
Message-ID: <01HW.B5A402550056033C078EC71C@news.pacbell.net> (raw)
In-Reply-To: 8lk9hm$s21@newsserv.vs.dasa.de

On Tue, 25 Jul 2000 7:47:13 -0700, Dr. Joachim Schr�er wrote
(in message <8lk9hm$s21@newsserv.vs.dasa.de>):

> Keith Thompson <kst@cts.com> schrieb in im Newsbeitrag: 
> yec1z0m29bg.fsf@king.cts.com...
>> "Dr. Joachim Schr�er" <joachim.schroeer@vs.dasa.de> 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





  parent reply	other threads:[~2000-07-26  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-14  0:00 Top 10 Language Constructs (Ada) Bruno Gustavs
2000-07-14  0:00 ` David Kristola
2000-07-14  0:00 ` Samuel T. Harris
2000-07-15  0:00   ` Simon Wright
2000-07-18  0:00     ` Nick Keighley
2000-07-14  0:00 ` Andrew Hately
2000-07-15  0:00 ` David Botton
2000-07-15  0:00 ` Marc A. Criley
2000-07-16  0:00   ` David Botton
2000-07-18  0:00   ` David Kristola
2000-07-18  0:00     ` Bill Brennan
2000-07-18  0:00       ` Dr. Joachim Schr�er
2000-07-19  0:00         ` Bill Brennan
2000-07-18  0:00           ` Scott Ingram`
2000-07-21  0:00         ` Keith Thompson
2000-07-25  0:00           ` Dr. Joachim Schr�er
2000-07-25  0:00             ` Florian Weimer
2000-07-26  0:00             ` David Kristola [this message]
2000-07-25  0:00           ` Keith Thompson
2000-07-19  0:00       ` David Kristola
2000-07-18  0:00     ` Scott Ingram`
2000-07-18  0:00     ` Stefan Skoglund
2000-07-24  0:00   ` Richard Riehle
2000-07-26  0:00     ` The Ada type model (was Re: Top 10 Language Constructs (Ada)) Marc A. Criley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox