[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Locals in global namespace
- From: erik@... (Erik Hougaard)
- Date: Mon, 11 Sep 2000 17:37:55 +0200
----- Original Message -----
> I'm just implementing some logic around local variables in jlua, and
> discovered
> that local variables can be declared in the global namescape in lua. Is
this
> by design or by coincidence?
Yes you can define a global variable inside a function. Variables without
'local' are automatic global :-)
/Erik