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,7dbba1cd16d32bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada OOP syntax References: <_9adnb1KYvIrW87VnZ2dnUVZ_vOdnZ2d@comcast.com> In-Reply-To: <_9adnb1KYvIrW87VnZ2dnUVZ_vOdnZ2d@comcast.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1213471499 12.201.97.213 (Sat, 14 Jun 2008 19:24:59 GMT) NNTP-Posting-Date: Sat, 14 Jun 2008 19:24:59 GMT Organization: AT&T ASP.att.net Date: Sat, 14 Jun 2008 19:24:59 GMT Xref: g2news1.google.com comp.lang.ada:705 Date: 2008-06-14T19:24:59+00:00 List-Id: Steve wrote: > > In Ada there are rules that define the scope of an object. In my opinion > this syntax deficiency is the reason the "overriding" and "not overriding" > constructs were added to Ada 2005. They improve the situation, but you > still have to look closely to figure out which entities belong to which > objects. > > Tagged type definitions, IMO are an abomination. If you look at Delphi (an > object oriented version of Pascal), or C++, C# or Java, there is no > ambiguity of the scope of the entities that belong to an object. Why is it OK for the non-predefined operations of some types (integer, enumeration, untagged records, ...) to be separate from the type declaration, but not for tagged records? I'm not a fan of programming by extension (the correct name for OOP, which has nothing to do with object orientation), but you should at least be consistent in your objections. -- Jeff Carter "In the frozen land of Nador they were forced to eat Robin's minstrels, and there was much rejoicing." Monty Python & the Holy Grail 70