lua-users home
lua-l archive

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


> If you have no globals to reference would you do:
> ...
>     global      -- turns on dmode (only inside f)

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). Another is simply
to agree that when you write "global _" you do not want to really
use global "_"  ;-)

-- Roberto