lua-users home
lua-l archive

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


> On the whole, I think adding one line to
> the beginning and two lines to the end is not so difficult:
>    return function(module)
>      -- ...               
>      return module
>    end

Just a remark: with the new scheme for varargs, main chunks will be able
to get its arguments through `...'. So you simply write

  local module = ...

at the beginning of the module. (BTW, why do you need to return `module',
if it came from the outside?)

-- Roberto