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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Integer'Class References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 05 Oct 2004 00:52:29 GMT NNTP-Posting-Host: 63.184.105.243 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1096937549 63.184.105.243 (Mon, 04 Oct 2004 17:52:29 PDT) NNTP-Posting-Date: Mon, 04 Oct 2004 17:52:29 PDT Xref: g2news1.google.com comp.lang.ada:4693 Date: 2004-10-05T00:52:29+00:00 List-Id: 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