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!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!12.120.4.37!attcg2!attcg1!ip.att.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 14 Mar 2005 10:23:56 -0600 Organization: LJK Software Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1110817416 21099 192.135.80.34 (14 Mar 2005 16:23:36 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 14 Mar 2005 16:23:36 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:9370 comp.lang.c++:45570 comp.realtime:1453 comp.software-eng:5019 Date: 2005-03-14T10:23:56-06:00 List-Id: In article , Robert A Duff writes: > Kilgallen@SpamCop.net (Larry Kilgallen) writes: > >> In article , Robert A Duff writes: >> > 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. >> >> Yes, I just said Pascal had that. > > Oh, sorry, I must have thought you said "...in addition to what Pascal > has..." or something. My bad. > > Anyway, nested functions are really nested in any useful sense if you > can't do uplevel addressing, right? I much prefer that capability, but in Bliss (which lacks uplevel addressing) there is some benefit provided by just the reduced visibility of the nested function. I know for sure that I can call my nested function RETRIEVE_STATUS without worrying about a conflict with something else of the first name. This is _certainly_ not a Bliss vs. Ada argument, but for me it is a Bliss vs. C argument. Please remember, however, that I only mentioned it because you asked :-)