[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: global
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 18 Apr 2002 21:11:31 -0300
>so global doesn't affect dofile statements at all?
No, neither does local. Change your example to "local a=123" and it'll print
>Really? Interesting. so i can't use global for sandboxes in which dofile
>would be allowed?
I'm not sure what you mean here.
>The beauty in lua lies in the simplicity which still provides
>uncomplicated and powerful ways of doing things.
>This global statement somehow doesn't fit. it really looks like an
>complex and complicated beast albeit the "simple" syntax.
You have a point. The syntax is simple but the semantics can get confusing.
The main issue is whether global declarations as proposed solve the
perceived need for global declarations.