[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: globals (_locals)
- From: "Nick Trout" <nick@...>
- Date: Fri, 8 Jun 2001 15:05:33 +0100
----- Original Message -----
From: "Tom _" <email@example.com>
: > 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()
I personally find your suggestion more confusing that the global keyword and I
think it could lead towards a cluttered syntax for the language.
I think the point about "global ;" is that its only necessary if you havent
already specified "global" in the global scope and you want to check that your
function has no undeclared varibles. I think in the majority of cases global
will be declared in the global scope and this will not be an issue.