lua-users home
lua-l archive

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


> On Wed, Nov 16, 2011 at 11:07 PM, 文曦畅 <wenxichang@163.com> wrote:
> > (function ()
> > local localfunc = ...
> >
> > globalfunc = ...
> > end)()
> 
> This is not valid Lua code.

Besides, the other code seems to be wrong too (although valid):

  (dofile(file)) ();    -- load another lua file and execute

Maybe it should be 'loadfile'? (But then it does not segfault in
my machine...)

-- Roberto