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-fusi2.netcologne.de!newsreader2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada OOP alternatives? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <462e0cf4-1d53-4918-b30b-dd3d8df90f1b@p25g2000hsf.googlegroups.com> <487d9636$0$6543$9b4e6d93@newsspool3.arcor-online.net> Date: Wed, 16 Jul 2008 16:29:26 +0200 Message-ID: <14igflcyxx9fs.1x9iez43a3css.dlg@40tude.net> NNTP-Posting-Date: 16 Jul 2008 16:29:27 CEST NNTP-Posting-Host: 940443da.newsspool1.arcor-online.net X-Trace: DXC=VCEJTbflDEceoCI^f\Y]Eaic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbb5FMY:UF6[g[6LHn;2LCVn7enW;^6ZC`dIXm65S@:3>oXfbjk7YaT]` X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:1177 Date: 2008-07-16T16:29:27+02:00 List-Id: On Wed, 16 Jul 2008 10:03:15 -0400, Robert A Duff wrote: > You want the operations of a protected type to have visibility > on the components of just that object (the one that was locked > when entering the operation) -- not other objects that happen > to be of the same type. Yes, this shows why the idea of a hidden parameter (the protected object = self) is bad. The object should have been passed as a plain parameter to all operations of its type. protected type T is procedure Foo; -- More operation of T than others... end T; procedure Bar (X : in out T); It is annoying that Foo and Bar being both operations of the type T have different status. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de