lua-users home
lua-l archive

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


> Also, I think I'm going to implement the following in my interactive lua
> command loops:
> 
> =2+2
> 
> is an abbreviation for
> 
> _EVAL_PRINT(2+2)

This seems a nice (and simple) solution for those who use Lua as a calculator.
The `=' is an easy key (no shifts involved ;-), and we do not need to change
Lua (the core), only lua.c. We will consider it for 4.1 beta (alpha is almost
out now).

-- Roberto