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,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed.stanford.edu!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: CTips Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Sat, 12 Mar 2005 12:59:31 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <1136bh3li136dac@corp.supernews.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com comp.lang.ada:9243 comp.lang.c++:45312 comp.realtime:1375 comp.software-eng:4936 Date: 2005-03-12T12:59:31-05:00 List-Id: Robert A Duff wrote: > Kilgallen@SpamCop.net (Larry Kilgallen) writes: > > >>Even Bliss has nested functions. What Ada has that Pascal has in addition >>to nested functions is uplevel addressing, allowing an inner function to >>access data declared in outer scopes. > > > Heh? Pascal has that. In fact, practically every programming language > outside the C family has this feature. It's quite useful -- almost > essential in multi-threaded programs. > > - Bob Yeah, and don't ask what it costs you. I'd carefully forgotten about all the grungy details about displays and static/dynamic chaining, and you had to remind me. I particularily like solutions that reserves a register for the top-of-display/top-of-static-chain. Thats right - blow away a register for that. And then of course the cost of maintaining/walking those structures. If you need thread-private storage, there are *much* cheaper solutions.