lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jun 27, 2006 at 06:35:56PM -0400, Diego Nehab wrote:
> Don't you have to declare the variable static? Otherwise I
> believe it's ok to leave the value uninitialized (at least in C).

Not in a global scope; global variables are always initialized.
You're thinking of a local scope, where static causes the variable
to not be stored on the stack.

-- 
Glenn Maynard