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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8591be732d0fce98 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 16 Jul 2008 08:33:25 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada OOP alternatives? References: <462e0cf4-1d53-4918-b30b-dd3d8df90f1b@p25g2000hsf.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <487d9636$0$6543$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Jul 2008 08:33:26 CEST NNTP-Posting-Host: f3422c8b.newsspool3.arcor-online.net X-Trace: DXC=4Q`9g7F:c[YI?44J>Z[:RQMcF=Q^Z^V3X4Fo<]lROoRQ8kFejVX;>9]>4PcT;SU?8_Ol_7do] X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:1169 Date: 2008-07-16T08:33:26+02:00 List-Id: Robert A Duff wrote: > As for other (non-Ichbiah) designs, well I've seen various > proposals for "package types", treating Ada packages like "classes" in > languages like Simula-67, Java, C++, etc. I'm not sure that works. > E.g. the question arises whether types declared in two different > "package objects" of the same "package type" should be the same type. > I'm not sure it does _not_ work, either. ;-) Hasn't the package type returned---or at least a flavor of package type---as JGNAT's or AppletMagic's or MGNAT's Ada tagged <-> VM class? :-) E.g. package P is type P_Obj ... -- AppletMagic type Typ ... -- JGNAT end P; Meyer has collected a question about Ada's type syntax which is, Why hasn't Ada used the same syntax for the pair (type, operations) which is does use for (protected type, operations)?