lua-users home
lua-l archive

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


> Why not add something like this to Lua 5.4 ?

If you want to experiment with this idea, my ltokenp tool may be
useful. See http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#ltokenp
.

With ltokenp, you could remove "const name" from the source and build
a table of strings which would then be compared to table fields, that
is, identifiers after '.' or literal strings after '[', for instance.

Not a syntactical solution but perhaps good enough for testing the idea.