[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: globals (_locals)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 07 Jun 2001 09:44:03 -0300
> 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