[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Visibility and upvalues (and macros)
- From: Dave Bollinger <DBollinger@...>
- Date: Wed, 28 Jul 1999 22:22:08 -0400
Oops, I left something out:
>> How is it different from this (which does work):
fl = nil
function g(a)
local gl = fl -- no problem referencing a global, even if nil
print(gl) -- gl is of course itself still nil
end
g(123)
(which was just meant to be a sort of global version of the previous
example)
Cheers,
Dave