lua-users home
lua-l archive

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


On Fri, Dec 28, 2012 at 7:57 AM, Eric Wing <ewmailing@gmail.com> wrote:
> Interesting idea. Though I don't have a clear vision on what this
> should do.

I'm thinking of a plain C, no framework situation where the native
string functions are strcpy and friends.  Having string.match and
string.gsub exposed in a straightforward C-way would be an easy way to
make the hard part of C easy, which is parsing and re-arranging
strings. It does interact with Lua table support in a useful way -
naturally gsub,  and may be an appropriate way to get back
string.match captures for instance.

steve d.