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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43aafc250d42730f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-09 10:53:38 PST From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: controlled type in generic package? Date: 09 Feb 2001 19:45:51 +0100 Organization: RUS-CERT, University of Stuttgart, Germany Sender: rusfw@mercury.rus.uni-stuttgart.de Message-ID: References: <3A7FDA9A.C667090F@stn-atlas.de> <95p2ab$463$1@nnrp1.deja.com> <95sgl2$3c8$1@wanadoo.fr> <871yt8rvhq.fsf@deneb.enyo.de> NNTP-Posting-Host: mercury.rus.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: hornet.rus.uni-stuttgart.de 981744675 5258 129.69.1.226 (9 Feb 2001 18:51:15 GMT) X-Complaints-To: abuse@cert.uni-stuttgart.de NNTP-Posting-Date: Fri, 9 Feb 2001 18:51:15 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.ision.net!ision!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!cert.uni-stuttgart.de!not-for-mail Xref: supernews.google.com comp.lang.ada:5076 Date: 2001-02-09T19:45:51+01:00 List-Id: Brian Rogoff writes: > Unless it has changed since I last used it (~ v1.5), Python does not have > nested scopes, so it's relatively flat. Even C has nested scopes, just not > nested function definitions. I think you can pass around scopes freely with a few hacks. ;-) > Ada allows you to define classes at arbitrarily deep levels of > scope. Python doesn't even allow you to create deeper levels of scope. Even this can be solved with current Python versions. I even used such a trick in production code, but it's certainly ugly.