lua-users home
lua-l archive

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


Hi,guys
 
I have a problem when running a lua file as below:
 
a.lua
-------------------------
tbl = dofile("b.lua");
 
 
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

bravefly