Re: Globals vs. Locals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Globals vs. Locals
- From: Mark Hamburg <mhamburg@...>
- Date: 2005年8月05日 10:48:59 -0700
Somewhat unpolished idea that just came to me when thinking about requiring
globals in scripts to be declared. What if one could write something like:
local for global table, string
This would be equivalent to:
global table, string
local table, string = table, string
This would encourage people to build scripts that cache global lookups in
local variables.
Mark