lua-users home
lua-l archive

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


----- Original Message -----
From: "Tom _" <tom7ca@yahoo.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()
: ...
: end
:
: or
:
: dfun f()
: ...
: end

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.

N