lua-users home
lua-l archive

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


Where I wrote "test.lua", is "t.lua". This don't modify anything, but...

                                        Thanx,

                                                            Leandro.
----- Original Message -----
From: "Leandro Candido" <enclle@click21.com.br>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, October 22, 2003 6:13 AM
Subject: Lua return


> Hello,
>
>     I created the script test.lua with:
> ------
>     function test() return end
> ------
>     Then, I executed "luac -l test.lua", the output was:
> -------
> main <t.lua:0> (3 instructions, 12 bytes at 00870EF0)
> 0 params, 2 stacks, 0 upvalues, 0 locals, 1 constant, 1 function
>  1 [3] CLOSURE   0 0 ; 008701D0
>  2 [1] SETGLOBAL 0 0 ; test
>  3 [3] RETURN    0 1 0
>
> function <t.lua:1> (2 instructions, 8 bytes at 008701D0)
> 0 params, 2 stacks, 0 upvalues, 0 locals, 0 constants, 0 functions
>  1 [2] RETURN    0 1 0
>  2 [3] RETURN    0 1 0
> --------
>
> Why the two returns above? This is normal, a problem of luac, or a problem
> of lua?
>
>                                                 The God's Peace,
>
>
> Leandro.
>
>