comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: scope and/or parameters (beginner)
Date: 1999/04/12
Date: 1999-04-12T00:00:00+00:00	[thread overview]
Message-ID: <7et4vr$sdj$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7ei04q$o$1@nnrp1.dejanews.com

In article <7ei04q$o$1@nnrp1.dejanews.com>,
  czgrr <czgrr@my-dejanews.com> wrote:
> In article <370b0c99.1137352783@news.dsuper.net>,
>   fluffy_doo@dsuper.net wrote:
> > On Mon, 05 Apr 1999 05:04:25 +0000, Corey Ashford

> > 	The fact that a sub-program is declared INSIDE another, as
> > 	opposed to OUTSIDE of it, makes no difference from the point of
> > 	view of the compiler.  As long as any call to a sub-program is
> > 	made AFTER its declaration it is treated exactly the same way.
> >
> > TRUE / FALSE ?

> It does make one important difference. In the same way as local variables are
> not accessible outside the routine they are declared in, declaring a routine
> inside another limits the scope (accessibility) of that routine.

It was claimed here at work that nested subroutines should be avoided due to
the elaboration overhead whenever the outer routine is called. That sounds a
bit shaky to me. Is there a situation where there would be a runtime impact
of nesting subroutines?


T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-04-12  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-02  0:00 scope and/or parameters (beginner) fluffy_pink
1999-04-03  0:00 ` Matthew Heaney
1999-04-05  0:00 ` Corey Ashford
1999-04-05  0:00   ` fluffy_doo
1999-04-06  0:00     ` Matthew Heaney
1999-04-08  0:00     ` czgrr
1999-04-10  0:00       ` fluffy_puff
1999-04-12  0:00       ` dennison [this message]
1999-04-13  0:00         ` czgrr
1999-04-13  0:00           ` Robert Dewar
1999-04-14  0:00             ` czgrr
1999-04-14  0:00               ` dennison
1999-04-14  0:00               ` Robert Dewar
1999-04-15  0:00                 ` czgrr
1999-04-15  0:00                   ` Robert Dewar
1999-04-13  0:00         ` Robert Dewar
1999-04-13  0:00     ` Robert A Duff
1999-04-14  0:00       ` Robert Dewar
1999-04-14  0:00         ` Hyman Rosen
1999-04-14  0:00           ` dennison
1999-04-14  0:00             ` Hyman Rosen
1999-04-14  0:00               ` dennison
1999-04-14  0:00                 ` Hyman Rosen
1999-04-15  0:00                   ` dennison
1999-04-15  0:00                     ` Robert Dewar
1999-04-15  0:00                       ` dennison
1999-04-15  0:00                       ` Hyman Rosen
1999-04-15  0:00           ` Robert Dewar
1999-04-15  0:00             ` Hyman Rosen
1999-04-15  0:00               ` Robert Dewar
1999-04-15  0:00                 ` Hyman Rosen
1999-04-16  0:00               ` Rakesh Malhotra
1999-04-15  0:00       ` fluffy_dong
1999-04-15  0:00         ` Robert Dewar
1999-04-15  0:00           ` dennison
1999-04-15  0:00             ` fluffy_dong
1999-04-16  0:00               ` Robert Dewar
1999-04-16  0:00                 ` Fraser Wilson
1999-04-16  0:00                   ` Gautier.DeMontmollin
1999-04-20  0:00                     ` Nick Roberts
1999-04-21  0:00                     ` fraser
1999-04-22  0:00               ` Robert A Duff
1999-04-22  0:00                 ` Larry Kilgallen
1999-04-16  0:00         ` Samuel Mize
replies disabled

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