[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is there any reason not to have sort function from C API?
- From: Axel Kittenberger <axkibe@...>
- Date: Wed, 17 Aug 2011 17:36:40 +0200
> On the other hand the situation may be reversed:
> every tool or library using array sorting would have to
> copy-paste the sorting routine and that is bloating the code
> (which isn't kinda Lua spirit).
You got that wrong. The Lua style was always: do it yourself 'cause
the core is nonbloated.
Loading table.sort through the Lua API and lua_call it, is simple enough.