comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Static variables?
Date: 1997/03/27
Date: 1997-03-27T00:00:00+00:00	[thread overview]
Message-ID: <dewar.859472958@merv> (raw)
In-Reply-To: 1997Mar25.073604.1@eisner


Larry said

<<Is the quality being sought just nested subprograms,
or is uplevel addressing actually required ?  There
are languages which have nested subprograms without
uplevel addressing.

I suppose one can simulate uplevel addressing with lots of
in-out parameters, but for me that moves away from readability.>>

Absolutely the issue is uplevel addressing. nested procedures without
uplevel addressing are a rather small feature, they provide a bit of
namespace protection, which can be provided by other means.

The context of the original remark was to do with threaded programs, where
nested procedures and uplevel addressing are an enormous help in writing
thread safe code. Have a look back at the start of the thread, and reread
my comments on the structure of printf for an example.





      reply	other threads:[~1997-03-27  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-17  0:00 Static variables? Viqar Abbasi
1997-03-17  0:00 ` Robert Dewar
1997-03-18  0:00   ` nasser
1997-03-18  0:00 ` Jon S Anthony
1997-03-18  0:00   ` Samuel Tardieu
1997-03-18  0:00     ` Tom Moran
1997-03-19  0:00   ` Robert Dewar
1997-03-25  0:00     ` Richard A. O'Keefe
1997-03-25  0:00       ` Larry Kilgallen
1997-03-27  0:00         ` Robert Dewar [this message]
replies disabled

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