[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Another example of locals as default
- From: "Magnus Lie Hetland" <mlh@...>
- Date: Mon, 28 Aug 2000 16:44:47 +0200
PostScript...
When you add a name space to the dictionary stack, all
definitions are local, while variable lookups go down
through the dict stack (to the global, if not found
before) to find a value.
I'm not saying Lua should behave like this... It's just
an example of what I feel is a quite natural behaviour.
--
Magnus Lie Hetland (magnus at hetland dot org)
"Reality is what refuses to disappear when you stop
believing in it" -- Philip K. Dick