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,FREEMAIL_FROM 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!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: "Rick Santa-Cruz" Newsgroups: comp.lang.ada Subject: Re: Integer'Class Date: Tue, 5 Oct 2004 03:00:49 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1096938050 02 6653 yavmX3Dl6bG6SNzl 041005 01:00:50 X-Complaints-To: usenet-abuse@t-online.de X-ID: VUVhY8Zdoe0P-jmRcgTA6ew-IvSxx8ebAgp2cMKpm3a8zd3tKrgr4r X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Xref: g2news1.google.com comp.lang.ada:4696 Date: 2004-10-05T03:00:49+02:00 List-Id: "Jeffrey Carter" schrieb im Newsbeitrag news:hfm8d.2844$UP1.1203@newsread1.news.pas.earthlink.net... > 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. So, it's only a notation-problem and I am not only using "new" to derive (in the conext of OOP) from a type? If this is the case, I can use the new-keyword always and not only in cases of tagged types... is this true? Bye, Rick