[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] lua_bufflib 0.2
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 18 May 2013 17:23:30 -0300
> Version 0.2 adds support for calling string methods on Buffers by
> prefixing the name with "s_". For example, `bufflib.s_gsub(buff, ...)`
> and `buff:s_gsub(...)` are both equivalent to `str:gsub(...)` (where
> `buff` is a Buffer and `str` is the Buffer's contents as a string).
Why the need for the "s_" prefix?