lua-users home
lua-l archive

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

>function example(x)
>local w,y
>global z,q
>   w=x*x
>   print(w+x+q)
>   print(g)  -- error

>From what I could understand from the manual, "print" is also a
global variable, isn't it? How come you can access "print" without
declaring it to be global? That looks weird...


Get Your Private, Free Email at