Article View: comp.lang.misc
Article #5270Re: Var scoping in Wirth-type languages
From: Gordon V. Cormack
Date: Sun, 13 Mar 1988 17:05
Date: Sun, 13 Mar 1988 17:05
13 lines
1018 bytes
1018 bytes
In article <170500016@uiucdcsb>, robison@uiucdcsb.cs.uiuc.edu writes:
>
> For languages without "upward funargs" (e.g. Pascal), a global display
> is sufficient, and furthermore requires only one extra push/pop per
> procedure call.
Not true. Procedure and Function parameters can access an environment
totally disjoint from the calling environment. Hence, each such
parameter requires its own display (or static link).
--
Gordon V. Cormack CS Dept, University of Waterloo, Canada N2L 3G1
gvcormack@waterloo { .CSNET or .CDN or .EDU }
gvcormack@water { UUCP or BITNET }
Technical Details
Message-ID:
<5685@watdragon.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!gvcormackReferences:
<3949@ihlpf.ATT.COM> <170500016@uiucdcsb>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!gvcormack From: gvcormack@watdragon.waterloo.edu (Gordon V. Cormack) Newsgroups: comp.lang.misc Subject: Re: Var scoping in Wirth-type languages Message-ID: <5685@watdragon.waterloo.edu> Date: 13 Mar 88 17:05:33 GMT References: <3949@ihlpf.ATT.COM> <170500016@uiucdcsb> Organization: U of Waterloo, Ontario Lines: 13