lua-users home
lua-l archive

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



As Javier suggested, using string representation of tables as keys is
probably the only solution to your problem.

An alternative solution is to use tuples, which can be safer and more efficient. If you're interested, check the draft of my attempt for an efficient tuple support for Lua:

  http://www.tecgraf.puc-rio.br/~maia/lua/tuple/

Also see:

  http://lua-users.org/wiki/SimpleTuples
  http://lua-users.org/wiki/FunctionalTuples

So, it may be that what you want to do is not a "Lua way" thing, and
you should reconsider your architecture. :-)


That might be true indeed. ;-)

--
Renato Maia
Computer Scientist
Tecgraf/PUC-Rio
__________________________
http://www.inf.puc-rio.br/~maia/