[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upcoming changes in Lua 5.2 [was Re: Location of a package]
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Feb 2008 13:56:05 -0300
> 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