[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: Duncan Cross <duncan.cross@...>
- Date: Wed, 17 Aug 2011 14:16:03 +0100
On 8/17/11, Rebel Neurofog <rebelneurofog@gmail.com> wrote:
> Of course, I see no problem of taking auxsort () from ltablib.c to my code.
> But shouldn't it be accessible to outside world?
No, table.sort() is not part of the minimal core that is exposed by
the C API, is it part of the standard libraries. Some of the standard
library functions are just simple wrappers around core functions, but
not all of them - table.sort() is not, also table.insert(),
string.rep(), string.reverse(), etc.
-Duncan