lua-users home
lua-l archive

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


On Mon, 2006-10-23 at 09:27 +0100, Gavin Wraith wrote:
> In message <20061023020406.GA2030@hysteria.cz> you wrote:
> 
> 
> > I'm not sure if this wasnt implemented before, but couldn't find it
> > anywhere so here it is:
> > 
> > print("Hello from \$_LUA_VERSION\ ..")
> > 
> > equals to:
> > 
> > print("Hello from ".._LUA_VERSION.." ..")
> 
> What is the point, when string.format is available?

This transformation can be done by the parser, rather than processing it
at runtime.  Although it's not slow to use string.format really, and
such syntaxes remind me of the arbitrary magic in Perl, and I'd prefer
to avoid such things.

B.