lua-users home
lua-l archive

Re: Why have two RETURN opcode for function

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


2016年03月21日 16:32 GMT+02:00 Wangbo <wangbo.red@gmail.com>:
> I have simple Lua code, why have two RETURN opcode for foo function after i
> check compile code.
>
> 6 [4] RETURN 1 2
> 7 [5] RETURN 0 1
Checking all code paths to make sure that the `end` statement
cannot be reached would make the compiler more complicated.

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