From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,51890d5f6003bad4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Integer'Class Date: Tue, 05 Oct 2004 09:16:14 +0200 Organization: AdaCL Message-ID: <1920040.70vYlTklcI@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1096960682 00 30133 D9lmXWIJDl4MC4Y 041005 07:18:02 X-Complaints-To: usenet-abuse@t-online.de X-ID: VI7AR-ZBoe0en4MBTXC9XFE6hno4lGmceQPAhfHIg3dd-hkhslb00N User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:4712 Date: 2004-10-05T09:16:14+02:00 List-Id: 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