comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Naturals and discrete types
Date: Fri, 2 Nov 2001 18:19:04 +0000 (UTC)
Date: 2001-11-02T18:19:04+00:00	[thread overview]
Message-ID: <slrn9u5sp5.v0j.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: sFAE7.10257$xS6.14219@www.newsranger.com

On Fri, 02 Nov 2001 17:24:40 GMT, Ted Dennison wrote:
> In article <oGjE7.221593$K6.106487221@news2>, Clueless says...
>>Also, I've been checking my Ada docs to find out if the Natural type is
>>considered to be a Discrete or Real type by the GNAT compiler, but I
>>havent found any specific info yet. Although the compiler messages
>>certainly seem to indicate that Natural is a subtype of Real.
> 
> Boy are you confused!
> 
> Natural is a subtype of Integer with a range of 0 to Integer'last. 

Which again comes from basic mathematics. :-)

Preben Randhol
-- 
Please, stop bombing civilians in Afghanistan. One cannot write off
killing innocent children and other civilians as "collateral damage".
A civilian is a civilian whether he or she is American or from another
country in the world.           http://web.amnesty.org/11september.htm



  reply	other threads:[~2001-11-02 18:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01 22:05 Naturals and discrete types Clueless
2001-11-01 22:35 ` Matthew Heaney
2001-11-01 22:59 ` Clueless
2001-11-02 15:05   ` Marin David Condic
2001-11-02 17:24 ` Ted Dennison
2001-11-02 18:19   ` Preben Randhol [this message]
2001-11-02 18:51     ` Marin David Condic
2001-11-03 18:01       ` Nick Roberts
2001-11-04  4:18         ` tmoran
2001-11-05 15:29           ` Marin David Condic
2001-11-04 11:39       ` Preben Randhol
2001-11-05  2:01         ` Clueless
2001-11-05  2:37           ` Larry Kilgallen
  -- strict thread matches above, loose matches on Subject: below --
2001-11-01 23:06 Beard, Frank
2001-11-01 23:20 ` Clueless
2001-11-02  3:05   ` DuckE
replies disabled

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