[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: globals (_locals)
- From: Tom _ <tom7ca@...>
- Date: Thu, 7 Jun 2001 11:29:09 -0700 (PDT)
--- Roberto Ierusalimschy <roberto@inf.puc-rio.br>
wrote:
> There is a small syntactical problem here. We cannot
> accept just "global",
> because the compiler would need lots of look-ahead
> to realise that
> something like
>
> global
> a, b, c = 1, 2, 3
>
> is not "global a,b,c". One solution is to add a
> specific "mark" for such
> cases ("global ;", "global -", anything like this).
Any of those would address my concerns.
One thing to consider might be to introduce "dmode"
functions with a different keyword:
dfunction f()
...
end
or
dfun f()
...
end
Tom
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/