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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43aafc250d42730f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-08 07:50:11 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: controlled type in generic package? Date: Thu, 08 Feb 2001 15:41:51 GMT Organization: Deja.com Message-ID: <95uens$rcf$1@nnrp1.deja.com> References: <3A7FDA9A.C667090F@stn-atlas.de> <95p2ab$463$1@nnrp1.deja.com> <95sgl2$3c8$1@wanadoo.fr> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Thu Feb 08 15:41:51 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x56.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:4996 Date: 2001-02-08T15:41:51+00:00 List-Id: In article <95sgl2$3c8$1@wanadoo.fr>, "Jean-Pierre Rosen" wrote: > ... but to be fair: > Do you know ANY language that allows it ? > > Most OO languages (C++, Java, Eiffel, even Turbo-Pascal) do not allow > declaring classes within a subprogram. > In Ada, all classes must be declared at the same level. In other l > anguages, all classes must be declared at level 0. > So Ada is actually *more* permissive than other languages... That's one way to put a positive spin on it. The negative spin is that C++ allows users to create "controlled" classes everywhere a non-controlled class can be declared, while Ada does not. :-) -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/