lua-users home
lua-l archive

Re: String algorithm

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yes, I just rediscovered that it's implemented in table.concat (thanks Steffen). I learned about lua somewhere in 2004 or 2005, so I must have read about that algorithm in PiL before, I read that book from start to finish at that time. I guess I had forgotten about this particular chapter.
In any case thanks again for all your reactions :)
From: Philippe Lhoste <PhiLho@GMX.net>
Reply-To: Lua list <lua@bazar2.conectiva.com.br>
To: lua@bazar2.conectiva.com.br
Subject: Re: String algorithm
Date: 2007年1月25日 15:03:49 +0100
Carlos Augusto Teixeira Mendes wrote:
Or you might put all your strings into a single table and use table.concat.
IIRC it already uses the algorithm that you are mentioning.
Yes, this function was introduced after the article was written: there was a need, it was filled... The article Mark searches is LTN 9 - Creating strings piece by piece <http://www.lua.org/notes/ltn009.html>
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_________________________________________________________________
Play online games with your friends with Messenger http://www.join.msn.com/messenger/overview

AltStyle によって変換されたページ (->オリジナル) /