lua-users home
lua-l archive

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


Thank you both! Problem solved.

             tab.var@addr = 1

is terser than

             tab["var@addr"] = 1

saving 3 chars and I'm a miser. That's why I liked to be able to do it.

Wei
             
On Wed, Dec 19, 2012 at 6:26 PM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> But I haven't been able to do
>           tab.var@addr = 1.
>
> I'm using Lua 5.1.5. Any suggestions?

Not for 5.1, but in 5.2 you can tell the lexer that @ is a letter by
editing lctype.c and rebuilding. Not that I recommend you to...