[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question on local vs nonlocal
- From: Sean Conner <sean@...>
- Date: Thu, 14 May 2020 21:24:39 -0400
It was thus said that the Great Ahmed Charles once stated:
>
> My intent is to have ‘global’ (the exact keyword used matters less) be an
> explicit maker of which variables should have _ENV. prepended. I.e. it
> doesn’t change the byte code emitted for any existing program, it would
> only require adding a declaration for each error issued during load.
So why not use '_ENV.' in place of 'global'? It's already supported by
Lua, and it makes it *very* easy to locate the use of global variables.
-spc (Or maybe Roberto and Co. can change the name of _ENV to global?)
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org