lua-users home
lua-l archive

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


On Wed, Jul 25, 2012 at 2:44 PM, TNHarris <telliamed@whoopdedo.org> wrote:
> Format %q makes it easy, but because of the name it comes out longer.
>
>     y="y=%qprint(string.format(y,y))"print(string.format(y,y))

Same idea, but using 'y:format(y)' instead of 'string.format(y,y)'

y="y=%qprint(y:format(y))"print(y:format(y))



-- 
Gé