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,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: in defense of GC 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: <1169531612.200010.153120@38g2000cwa.googlegroups.com> <1mahvxskejxe1$.tx7bjdqyo2oj$.dlg@40tude.net> <2tfy9vgph3.fsf@hod.lan.m-e-leypold.de> <1g7m33bys8v4p.6p9cpsh3k031$.dlg@40tude.net> <14hm72xd3b0bq$.axktv523vay8$.dlg@40tude.net> <4zwt33xm4b.fsf@hod.lan.m-e-leypold.de> <1j7neot6h1udi$.14vp2aos6z9l8.dlg@40tude.net> <1pzx3y7d2pide.y744copm0ejb$.dlg@40tude.net> <1aqj1657qjei9.1umdok28t0trz$.dlg@40tude.net> Date: Mon, 5 Feb 2007 09:47:39 +0100 Message-ID: NNTP-Posting-Date: 05 Feb 2007 09:47:38 CET NNTP-Posting-Host: 8e950905.newsspool4.arcor-online.net X-Trace: DXC=EQMMYHj0KmZ1`E>oC;JXEZ4IUKkgRo[K7>FUIALT X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8953 Date: 2007-02-05T09:47:38+01:00 List-Id: On Sun, 04 Feb 2007 23:47:29 +0100, Markus E Leypold wrote: > "Dmitry A. Kazakov" writes: > >> Consider also this: >> >> protected type Bar is >> function Make_a_Mess return ...; >> private >> Baz : Integer; >> -- To be put into the closure together with barriers of the entries! >> >> how do you return a closure from a protected object or a task rendezvous? >> Will it be able to assign Baz? > > Interesting thought. Either it must inherit the barriers, somehow, or > you simply can't. But proposing upward closures you have to be prepared to answer such questions... > I > still do not see, how you would manage to pass procedure upwards which > us variables that are defined in their environment. As I said before, I don't want this feature in Ada, it is your wish, not mine. For all I don't know what is "environment." It is up to you to define it, before it could be reasonably discussed. Further I don't see why environment cannot be expressed as an object of manifested type (=OO solution) and why it should be passed outwards. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de