[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: table library changes (was Re: table.new in 5.3?)
- From: "John Hind" <john.hind@...>
- Date: Thu, 28 Nov 2013 20:59:12 -0000
> Date: Thu, 28 Nov 2013 14:30:01 +0200
> From: Dirk Laurie <firstname.lastname@example.org>
> Subject: Re: table library changes (was Re: table.new in 5.3?)
> 2013/11/28 John Hind <email@example.com>:
> > 1. There are currently some fairly large chunks of C code in the
> > standard libraries which are accessible from Lua but not via the C
> > API. The string library is probably the largest culprit here, but
> > in the table library is (may be) another example.
> Does running `luaL_dostring` not count?
I guess it does, Dirk, but it would feel kind of odd if, to sort a table inside a Lua library you execute some Lua in order to immediately call back to C! A Lua script using such a library would go Lua->C->Lua->C->Lua->C->Lua! And of course the same argument applies to lua_arith, lua_compare and many other API functions that could be done with luaL_dostring.
This email is free from viruses and malware because avast! Antivirus protection is active.