[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Global access control
- From: "Maria das Dores" <mcplin@...>
- Date: Mon, 29 Dec 1997 06:02:59 PST
>$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