lua-users home
lua-l archive

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


Jay Carlson <nop@nop.com> writes:
> One example of this is utf8 validity. assert_utf8(s) really wants to
> privately decorate s with s::utf8.is_valid. As it happens there are
> some reserved bits left in Lua string internals so this is one of
> those rare cases of a cooperative v(ictim).

... except that "is valid utf8" is probably not a sufficiently important
or useful concept to warrant using rare reserved bits for...

-miles

-- 
XML is like violence.  If it doesn't solve your problem, you're not
using enough of it.