comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: controlled type in generic package?
Date: Fri, 09 Feb 2001 17:02:25 GMT
Date: 2001-02-09T17:02:25+00:00	[thread overview]
Message-ID: <Pine.BSF.4.21.0102090854130.18552-100000@shell5.ba.best.com> (raw)
In-Reply-To: <871yt8rvhq.fsf@deneb.enyo.de>

On 9 Feb 2001, Florian Weimer wrote:
> Brian Rogoff <bpr@shell5.ba.best.com> writes:
> > Yes, C++, Java and Eiffel are fairly "flat" languages, like Python and
> > unlike Ada.
> 
> 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:
[...snip...]
> Python is not a flat language at all.

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. 

Ada allows you to define classes at arbitrarily deep levels of
scope. Python doesn't even allow you to create deeper levels of scope. 

OK, I just hit the Python page and

http://python.sourceforge.net/peps/pep-0227.html
http://www.amk.ca/python/2.1/index.html#SECTION000300000000000000000

confirm that 2.1 will no longer be a "flat" language. 

-- Brian





  reply	other threads:[~2001-02-09 17:02 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 [this message]
2001-02-09 18:45             ` Florian Weimer
2001-02-13  0:32           ` Nick Roberts
2001-02-14  0:30             ` Jon S Anthony
     [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