Re: Can I get the return values NOT adjusted to zero?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can I get the return values NOT adjusted to zero?
- From: "Aaron Brown" <arundelo@...>
- Date: 2006年6月20日 22:45:11 -0400
Sam Roberts wrote:
But wait... looking a lua.c, I see that it appears to be
using "=" as a short hand for "put return at the start of
this line".
Yep. If you don't want the user to have to type "=" or
"return ", and you also want them to be able to type
statements or blocks of statements as well as expressions, a
trick for doing this without needing to parse the user's
input is briefly described at
http://lua-users.org/lists/lua-l/2005-04/msg00159.html
--
Aaron