lua-users home
lua-l archive

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


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