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,c406e0c4a6eb74ed X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!freenix!oleane.net!oleane!skymaster!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: ADA Popularity Discussion Request Date: Tue, 31 Aug 2004 11:37:00 +0200 Organization: Adalog Message-ID: References: <49dc98cf.0408110556.18ae7df@posting.google.com> <1198227.gWQ0keDDOY@linux1.krischik.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: s5.feed.news.oleane.net 1093946702 7694 195.25.228.57 (31 Aug 2004 10:05:02 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 31 Aug 2004 10:05:02 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.2) Gecko/20040803 X-Accept-Language: fr-fr, en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3204 Date: 2004-08-31T11:37:00+02:00 List-Id: Kevin Cline a =E9crit : > I seem to have confused limited types and controlled types, probably > because I stopped programming in Ada before there were controlled > types. Still, using controlled types also seems to be problematical.=20 > For example, I found this at http://www.gidenstam.org/Ada/: >=20 > "In Ada controlled types, i.e. types with user defined initialize and > finalize operations, must be declared at the library level - either as > direct descendents of Ada.Finalization./Limited_/Controlled or via a > mixin component that inherits from > Ada.Finalization./Limited_/Controlled. This makes it a bit of a hassel > to use controlled types, and in particular it makes it quite limiting > to use controlled types in generic packages that one otherwise would > have liked to instansiate at other levels than the library level. > [...]=20 > I don't know about you, but that mades my head hurt. In C++ there are > some things that make my head hurt too, but they mostly are there to > determine the meaning of code that I would naver write in the first > place. It is true that controlled *types* (not objects) need to be declared at=20 library level. However, all other OO languages (that I know of) require=20 *all* classes to be declared at library level. So, there is no reason to have your head hurt. It's just one of the few=20 cases where Ada makes even with other programming languages, not better. --=20 --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr