lua-users home
lua-l archive

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

What application are you using Lua in? The example you gave works in the standalone interpreter.

On Tue, 30 Mar 2010 21:14:28 -0600, bravefly <> wrote:


I have a problem when running a lua file as below:

tbl = dofile("b.lua");

return {1, 2, 3}

But In file a, I can't get the table returned from b.
I have changed b.lua file to

t = {1, 2, 3}
return t;

Now , It is ok.
I want to know the reason. Thanks.

bravefly                       2010-03-31