comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Fixed-point question
Date: 1995/04/07
Date: 1995-04-07T00:00:00+00:00	[thread overview]
Message-ID: <dewar.797305857@gnat> (raw)
In-Reply-To: 3m43ot$grt@butch.lmsc.lockheed.com

Ken Garlington asks:

"   type D is delta 0.1 range ...

This generates a set of model numbers M. In this particular user's mind,
however, he is thinking in terms of the set S = { ... 2.0, 2.1, 2.2 ... }
(is there a name in Ada for this set?)."

No, there is no name for this set as the declaration stands. However, if
the user is thinking in terms of this set, then the following declaration
should be added (Ada 83 or Ada 95)

     for D'Small use 0.1;

then there *is* a name for that set, its called the set of model
numbers and things will work exactly as expected.

If your compiler rejects this declaration, it is being naughty and you
should complain to the vendor, there is no god excuse for not supporting
decimal small values.





  reply	other threads:[~1995-04-07  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-01  0:00 Fixed-point question Garlington KE
1995-04-06  0:00 ` Robert Dewar
1995-04-07  0:00   ` Garlington KE
1995-04-07  0:00     ` Robert Dewar [this message]
1995-04-07  0:00   ` Robert I. Eachus
1995-04-07  0:00     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2015-06-26 13:20 Patrick Noffke
2015-06-26 16:56 ` Jeffrey R. Carter
2015-06-26 18:21   ` Patrick Noffke
2015-06-26 20:21     ` Anh Vo
2015-06-26 20:25     ` Jeffrey R. Carter
2015-06-27  2:55       ` Patrick Noffke
2015-06-26 23:14     ` Qun-Ying
2015-06-27  3:00       ` Patrick Noffke
2015-06-27  4:44         ` Jeffrey R. Carter
2015-06-27 17:59           ` Patrick Noffke
2015-06-27 18:38             ` Jeffrey R. Carter
2015-06-27 19:20               ` Bob Duff
2015-06-27 19:57                 ` Jeffrey R. Carter
2015-06-27 20:42                   ` Bob Duff
2015-06-28 11:39                     ` Brian Drummond
2015-06-29 13:28                     ` Patrick Noffke
2015-06-29 14:13                       ` Bob Duff
2015-06-27 23:41               ` Anh Vo
replies disabled

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