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-13 16:31:03 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!portc03.blue.aol.com!portc01.blue.aol.com!peerfeed.news.psi.net!filter.news.psi.net!reader.dist.news.psi.net!client!not-for-mail Message-ID: <3A89D1A9.73B9@synquiry.com> From: Jon S Anthony X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: controlled type in generic package? References: <3A7FDA9A.C667090F@stn-atlas.de> <95p2ab$463$1@nnrp1.deja.com> <95sgl2$3c8$1@wanadoo.fr> <871yt8rvhq.fsf@deneb.enyo.de> <96a0pp$jpb8r$1@ID-25716.news.dfncis.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 13 Feb 2001 19:30:33 -0500 NNTP-Posting-Host: 38.151.18.1 X-Trace: client 982110641 38.151.18.1 (Tue, 13 Feb 2001 19:30:41 EST) NNTP-Posting-Date: Tue, 13 Feb 2001 19:30:41 EST Xref: supernews.google.com comp.lang.ada:5245 Date: 2001-02-13T19:30:33-05:00 List-Id: Nick Roberts wrote: > > "Florian Weimer" wrote in message > news:871yt8rvhq.fsf@deneb.enyo.de... > > ... > > Python permits class declarations anywhere a statement is allowed (in > > fact, a class declaration *is* a statement). Python classes are > > usually used to implement closures: > > ... > > Python is not a flat language at all. > > Python is an interpreted language, and whilst classes can apparently > be declared within nested blocks, they all effectively exist at the > same level _within the interpreter_. In this sense, Python is a > 'flat' language. A compiled language cannot handle things in this > way. Similar comments apply to the LISP family and others. To the extent this says anything it is plainly rubbish. "Exist at the same level within the interpreter" has no sense. Presumably you are trying to say that there are no "packages" for large scale lexical scoping. However, this is incorrect. Python does have packages, though no nested scoping (in a package/module it's either global or outer function scope - which is why you it does _NOT_ have closures). OTOH, the class hierarchy is just that - a hierarchy (as in "not flat"). Python definitely sucks, but not for any "flatness" reasons. Beyond this, whether the language is compiled or not is also irrelevant. For example, Common Lisp implementations are typically compiled (to machine code and are _extremely_ efficient). Common Lisp has a multiply nesting hierarchical package structure which is also dynamic (you can change package structure, importations, shadowing, etc. at runtime, though this is typically _not_ something you would do). /Jon -- Jon Anthony Synquiry Technologies, Ltd. Belmont, MA 02478, 617.484.3383 "Nightmares - Ha! The way my life's been going lately, Who'd notice?" -- Londo Mollari