[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Calling Lua operatiors from C
- From: "John Hind" <john.hind@...>
- Date: Mon, 15 Jun 2009 11:14:15 +0100
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: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> bounces@bazar2.conectiva.com.br] On Behalf Of Juris Kalnins
> Sent: 15 June 2009 09:59
> To: lua@bazar2.conectiva.com.br
> 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?