comp.lang.ada
 help / color / mirror / Atom feed
From: Jon S Anthony <jsa@synquiry.com>
Subject: Re: controlled type in generic package?
Date: Tue, 13 Feb 2001 19:30:33 -0500
Date: 2001-02-13T19:30:33-05:00	[thread overview]
Message-ID: <3A89D1A9.73B9@synquiry.com> (raw)
In-Reply-To: 96a0pp$jpb8r$1@ID-25716.news.dfncis.de

Nick Roberts wrote:
> 
> "Florian Weimer" <fw@deneb.enyo.de> 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



  reply	other threads:[~2001-02-14  0:30 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-06 11:06 controlled type in generic package? Nils Priebe
     [not found] ` <slrn97vtf5.ho.lutz@taranis.iks-jena.de>
     [not found]   ` <95q19j$9d$1@usenet.rational.com>
2001-02-07 10:11     ` Lutz Donnerhacke
2001-02-07 21:57       ` Mark Lundquist
     [not found]   ` <95p2ab$463$1@nnrp1.deja.com>
2001-02-07 15:08     ` Jean-Pierre Rosen
2001-02-08 15:41       ` Ted Dennison
2001-02-08 18:21         ` Jean-Pierre Rosen
2001-02-08 16:31       ` Florian Weimer
2001-02-08 21:10       ` Brian Rogoff
2001-02-09 10:39         ` Florian Weimer
2001-02-09 17:02           ` Brian Rogoff
2001-02-09 18:45             ` Florian Weimer
2001-02-13  0:32           ` Nick Roberts
2001-02-14  0:30             ` Jon S Anthony [this message]
     [not found]               ` <x7vg0hd20cm.fsf@smaug.pushface.org>
     [not found]                 ` <hovk6.96$aw5.304@www.newsranger.com>
2001-02-23 20:50                   ` Simon Wright
     [not found]     ` <95q1fa$9e$1@usenet.rational.com>
2001-02-07 15:28       ` Ted Dennison
2001-02-07 16:29         ` Brian Rogoff
     [not found]           ` <3A82A66D.49DE7EBD@bton.ac.uk>
2001-02-08 15:15             ` Robert Dewar
2001-02-08 16:56             ` Florian Weimer
2001-02-09 10:25               ` John English
2001-02-09 19:46                 ` Brian Rogoff
2001-02-07 18:52         ` Pat Rogers
2001-02-07 19:23           ` Pat Rogers
2001-02-07 19:50             ` Ted Dennison
2001-02-07 22:52         ` Jean-Pierre Rosen
2001-02-08  9:36           ` dmitry6243
2001-02-09  8:51             ` Jean-Pierre Rosen
2001-02-09 12:28               ` dmitry6243
2001-02-08 19:58           ` Mark Lundquist
2001-02-10  9:54           ` Thomas Wolf
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox