lua-users home
lua-l archive

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


On 10 July 2011 13:02, Lorenzo Donati <lorenzodonatibz@interfree.it> wrote:
BTW, I've seen lot of Lua code where the OOP style for strings is not used, i.e.: string.match(s, pattern) instead of s:match(pattern), so it's something pertaining to own's programming style.

I didn't even know the s:match(...) thing was an option, mostly because I wasn't looking for it seeing as I don't do the OOP thing.

--
"Perhaps people don't believe this, but throughout all of the discussions of entering China our focus has really been what's best for the Chinese people. It's not been about our revenue or profit or whatnot."
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.