comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Integer'Class
Date: Tue, 05 Oct 2004 09:16:14 +0200
Date: 2004-10-05T09:16:14+02:00	[thread overview]
Message-ID: <1920040.70vYlTklcI@linux1.krischik.com> (raw)
In-Reply-To: cjsoqg$re7$04$1@news.t-online.com

Rick Santa-Cruz wrote:

> Hi,
> 
> sorry for so many questions.... maybe that's easy answer, but I don't
> find any senseful answer to that:
> 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?

'Class is the tag of OO-classes. In C++ talk: virtual function table and
RTTI rolled in one. 

The parent for simple types is 'Base. The 'Base of Integer is
universal_integer - a compiler internal type which cannot be used directly.

Saying that, I now start to wonder what 'Base of a tagged type is...

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




  parent reply	other threads:[~2004-10-05  7:16 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 ` Integer'Class Jeffrey Carter
2004-10-05  1:00   ` Integer'Class Rick Santa-Cruz
2004-10-05 19:45     ` Integer'Class Jeffrey Carter
2004-10-05  7:16 ` Martin Krischik [this message]
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