lua-users home
lua-l archive

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

--- In, "Thatcher Ulrich" <tu@t...> wrote:
> Are you sure?  I'm seeing an error with the above code, as expected,
> using lua-5.0-beta.
> I actually get two errors; with the above code verbatim I get an 
> on the definition of "foo".  If I predefine a "foo" slot in g, then 
> get the expected error on "x = 1".

Whoops, I meant to define function foo() before calling setglobals().

I'm using lua-5.0-alpha and I don't get the expected error when foo() 
is called. Is this something that may have changed between the alpha 
and beta versions?