[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.concat - why so complex?
- From: Klaus Ripke <paul-lua@...>
- Date: Tue, 6 Apr 2010 15:41:31 +0200
hi
On Tue, Apr 06, 2010 at 02:24:53PM +0100, Peter Cawley wrote:
...
> It has been previously noted that luaL_addlstring is fairly
> inefficient, as it adds a single character at a time to the buffer,
> rather than adding the whole string. As table.concat limits itself to
> only working with strings, and hence sidesteps __concat, the method
> used does indeed seem a little odd.
according to folklore and the manual, numbers in the table are ok.
This adds a dash of complexity, yet still not too bad.
cheers