lua-users home
lua-l archive

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


> > Could you then at least throw an error for unknown escape
> > sequences, for example "\o" gives "undefined escape sequence
> > near \o"?
[...]
> >   Lua-5.1: print(#"\xaa") --> 3
> >   Lua-5.2: print(#"\xaa") --> 1

Roberto Ierusalimschy wrote:
> How many scripts do you think will fail with this addition of '\x'?

Not many, I guess (maybe more due to \*).  But I would even suggest
to backport the proposed error to 5.1.5 so that, if you try to run
a programm that uses one of the new escape sequences (and nothing
else from 5.2 - IMHO not too far-fetched) with 5.1 you get an immediate
error.

ET