lua-users home
lua-l archive

Re: How to return a table from a function

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


Well, is that ?

function foo()
local t = {k='bar'}
return t
end

x = foo()
print(type(x))
table.foreach(x,print)
[]'s
- Walter

AltStyle によって変換されたページ (->オリジナル) /