lua-users home
lua-l archive

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


>$noglobals
>z=10
>q=45
>g=54
>
>function example(x)
>local w,y
>global z,q
>   w=x*x
>   print(w+x+q)
>   print(g)  -- error
>end

>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...

MdD


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com