lua-users home
lua-l archive

Re: upvals in Lua bytecode

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


Reuben Thomas <rrt@sc3d.org> wrote:
>
> The very fact that no other common scripting language does this is a
> bad sign,
Yeah, no-one uses Perl.
> but in the case of Lua there's the explicit reason that it's
> meant to work for data description (Lua equivalent of JON), things
> like:
>
> server = "foo.bar.com"
> port = 25
>
> which break if every variable has to be declared.
Lua could perhaps switch on error-by-default mode the first time it sees a
"global" declaration.
Tony.
-- 
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Rockall, Malin, Hebrides: South 5 to 7, occasionally gale 8 at first in
Rockall and Malin, veering west or northwest 4 or 5, then backing southwest 5
or 6 later. Rough or very rough. Occasional rain. Moderate or good,
occasionally poor.

AltStyle によって変換されたページ (->オリジナル) /