lua-users home
lua-l archive

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


2009/10/17 Peter Cawley <>:
> On Sat, Oct 17, 2009 at 7:01 PM, Matthias Kluwe <> wrote:
>> Hi!
>> 2009/10/17 Linker <>:
>>> You can return a table instead of a list .
>> Well, I know ... I can return _one_ table, but matrix.lua does return
>> two of them, and there has to be a trick (well, not a trick obviously,
>> but I can't find it in the reference manual).
> Look at - you
> will notice that all execution paths terminate with an error or
> "return 1;", hence require() can only return a single value.

Right. I was mislead by the above mentioned script which I assumed to
work. I checked now -- it does not.

Thank you for the clarification.