Path: 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 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 }