lua-users home
lua-l archive

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

Well, there is lua_concat and lua_objlen. Comparing the metamethods with the API, there does not seem to be a match for the arithmetic operations or for __le. This last was quite recently added to Lua (it used to be synthesised from __lt and __eq) so maybe the API never caught up. It would be useful (if only for orthogonality) to have API functions for the arithmetic operations also!

> -----Original Message-----
> From: [mailto:lua-
>] On Behalf Of Juris Kalnins
> Sent: 15 June 2009 09:59
> To:
> Subject: Calling Lua operatiors from C
> There is lua_lessthan and lua_equal that mirror '<' and '=='.
> Is there any comparable way to execute from C API other operators too?