lua-users home
lua-l archive

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

>"In C, if I declare a variable in the function, then it's local. That's 
> I was surprised that in Lua I have to declare a variable in the function 
> that it's local."

Erm... I forgot something - yes. I forgot to say, that it is done in C 
automatically - it depends where it stands, in Lua you need an explicite 

Martin Döring, Systemtechnik (IDT)
MAN Nutzfahrzeuge AG
Dachauerstraße 667
D-80995 München

Tel.:   +49(0)89 / 1580 - 1199
Fax:   +49(0)89 / 1580 - 91-1199