lua-users home
lua-l archive

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


2015-05-08 14:02 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> alias lua='lua -l mathx -e "math=mathx" -i'
>
> I'm sure you know what you're doing but, for the record, doing "math=mathx"
> kills these functions because mathx deals exclusively with floats:
>
>  maxinteger      mininteger      random          randomseed      tointeger
>  type            ult              max            min

Thanks for pointing that out. It's now

alias lua='lua -l mathx -e "math=setmetatable(mathx,{__index=math})" -i'