lua-users home
lua-l archive

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


> 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

Anyway, instead of an alias you can set LUA_INIT or LUA_INIT_5_3 to
	math=require"mathx"