lua-users home
lua-l archive

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

> And ... IMHO mutable strings probably won't have less management
> overhead than buffers implemented with userdatas. Yes, I know,
> passing userdatas to C APIs expecting plain strings doesn't work
> right now. But this can be changed.

This seems a more promissing approach. Diego suggested something in
these lines some time ago. (Of course, the userdata must be converted to
a char*, not to a Lua string; this is tricky with metamethods...)

-- Roberto