|
Thanks,it's my
mistake.
2010-03-31
bravefly
发件人: Stuart P. Bentley
发送时间: 2010-03-31 11:47:24
收件人: lua
抄送:
主题: Re: Problem with Running
another lua file in a lua file.
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 <bravefly@gmail.com> wrote:
> 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
|