lua-users home
lua-l archive

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

--- Roberto Ierusalimschy <>
> 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()


dfun f()


Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!