[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ambiguous syntax??
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 26 Aug 2009 13:21:00 -0300
> This code however (just one line commented out) compiles with the error below:
>
> built_ins = {__index = M}
> setmetatable(built_ins, built_ins)
>
> -- z = function() end
>
> (setfenv(function() end, built_ins))() -- <----- line 78
The compiler sees this:
setmetatable(built_ins, built_ins)(setfenv(function() end, built_ins))()