[Date Prev][Date Next][Thread Prev][Thread Next]
- 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: firstname.lastname@example.org [mailto:lua-
> email@example.com] On Behalf Of Juris Kalnins
> Sent: 15 June 2009 09:59
> To: firstname.lastname@example.org
> 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?