[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Modules, interfaces
- From: Rena <hyperhacker@...>
- Date: Tue, 10 Apr 2012 19:27:29 -0600
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.