lua-users home
lua-l archive

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

> Any chances that it'll be possible to pass a null character (\000) to
> string.format for format specifiers other than %q?
>    <:: string.format("%s, %s, etc.", "\0", "\1")

I don't think so. Usually Lua passes the job to 'sprintf', which does
not accept embeded zeros. It could not use sprintf when the format
is simply "%s" (no maximum width/justification/minimum width), but it
would be strange to accept zeros in that case and not in the others. 

-- Roberto