lua-users home
lua-l archive

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


Am 21.02.2013 um 13:54 schrieb Kevin Martin <kev82@khn.org.uk>:

> 
> On 21 Feb 2013, at 12:48, Marc Balmer wrote:
> 
>> How should "%q" format it's parameter?
> 
> From the 5.2 manual:
> 
> "The q option formats a string between double quotes, using escape sequences when necessary to ensure that it can safely be read back by the Lua interpreter."
> 
> I'm not saying it's really difficult to do, I just thought there might be some code out there already, as if I do it myself, it's the kind of thing where it's really easy to write a buggy implementation. 
> 

ah crap, I thought you were referring to "%q" in another language, not to the Lua one ;)

sorry, I misread the original post, it seems...