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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1a88c4d509f6381 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: scope and/or parameters (beginner) Date: 1999/04/12 Message-ID: <7et4vr$sdj$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 465493226 References: <37064309.889106243@news.dsuper.net> <37084459.8616007@rocketmail.com> <370b0c99.1137352783@news.dsuper.net> <7ei04q$o$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Apr 12 15:54:39 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-04-12T00:00:00+00:00 List-Id: In article <7ei04q$o$1@nnrp1.dejanews.com>, czgrr 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