Re: [PATCH] More correctly describe the scope of variables

2021-03-15 Thread Paul Smith
On Wed, 2021-03-03 at 20:47 +0100, Jouke Witteveen wrote: > Another month, another reminder. I pushed these changes yesterday; thanks for the reminders! :)

Re: [PATCH] More correctly describe the scope of variables

2021-03-03 Thread Jouke Witteveen
On Fri, Jan 29, 2021 at 8:37 AM Jouke Witteveen wrote: > On Fri, Dec 25, 2020 at 7:00 PM Jouke Witteveen wrote: > > > > * NEWS: Use "local" instead of the incorrect "lexically-scoped". > > * doc/make.texi: Refer to let/foreach variables as local variables. > > --- > > This is an erratum on the ad

Re: [PATCH] More correctly describe the scope of variables

2021-01-28 Thread Jouke Witteveen
On Fri, Dec 25, 2020 at 7:00 PM Jouke Witteveen wrote: > > * NEWS: Use "local" instead of the incorrect "lexically-scoped". > * doc/make.texi: Refer to let/foreach variables as local variables. > --- > This is an erratum on the addition of $(let ...). During an early review > of $(let ...), thutt

Re: [PATCH] More correctly describe the scope of variables

2020-12-31 Thread Pete Dietl
A very good point!

Re: [PATCH] More correctly describe the scope of variables

2020-12-27 Thread Jouke Witteveen
On Fri, Dec 25, 2020 at 7:58 PM Pete Dietl wrote: > Now for Make, there are no semantics for telling whether or not it is > lexically or dynamically scoped. This is because previously the only local > variables were the function arguments. Since these arguments are always named > the same thing

Re: [PATCH] More correctly describe the scope of variables

2020-12-25 Thread Pete Dietl
So if you imagine each function call as creating a new environment, an environment being a dictionary of key value pairs that stores variables we define locally AND a “parent pointer” to another environment, then we can define lexical vs dynamic scoping as follows: Lexical: the parent pointer in a

[PATCH] More correctly describe the scope of variables

2020-12-25 Thread Jouke Witteveen
* NEWS: Use "local" instead of the incorrect "lexically-scoped". * doc/make.texi: Refer to let/foreach variables as local variables. --- This is an erratum on the addition of $(let ...). During an early review of $(let ...), thutt cautioned that it did not implement "full semantic scoping" [sic]. W