lua-users home
lua-l archive

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


On Tue, Apr 10, 2012 at 09:28, Rebel Neurofog <rebelneurofog@gmail.com> wrote:
>> local m, private=require "m"
>
> It isn't too clean way. Consider following:
>
> local module_list = {
>   require ("m"),
>   require ("n"),
>   require ("q"),
> }
> print (#module_list) -- The printed value will be "4"

Nope. Only the first return value would be kept in a table constructor.

-- 
Sent from my toaster.