From: Jeffrey Carter <spam@spam.com>
Subject: Re: Integer'Class
Date: Tue, 05 Oct 2004 00:52:29 GMT
Date: 2004-10-05T00:52:29+00:00 [thread overview]
Message-ID: <hfm8d.2844$UP1.1203@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <cjsoqg$re7$04$1@news.t-online.com>
Rick Santa-Cruz wrote:
> Why can't I use: Integer'Class, but I can derive a new class from
> Integer in writing:
> type New_Int is new Integer range 1..100;
>
> Isn't this unlogical? Or have I missunderstand something completly?
It is inconsistent. 'Class only applies to tagged types.
This is compounded further by the discussion of type classes, such as
the class of integer types, floating-point types, and so on. 'Class was
introduced in Ada 95 to allow OOP; type classes existed in Ada 83.
--
Jeff Carter
"You tiny-brained wipers of other people's bottoms!"
Monty Python & the Holy Grail
18
next prev parent reply other threads:[~2004-10-05 0:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 0:10 Integer'Class Rick Santa-Cruz
2004-10-05 0:52 ` Jeffrey Carter [this message]
2004-10-05 1:00 ` Integer'Class Rick Santa-Cruz
2004-10-05 19:45 ` Integer'Class Jeffrey Carter
2004-10-05 7:16 ` Integer'Class Martin Krischik
2004-10-05 19:49 ` Integer'Class Jeffrey Carter
2004-10-05 8:45 ` Integer'Class Dmitry A. Kazakov
-- strict thread matches above, loose matches on Subject: below --
2004-10-05 7:35 Integer'Class Christoph Karl Walter Grein
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox