lua-users home
lua-l archive

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


> Absolutely.  Lets keep Lua flexible in this
> regard, rather than arbitrarily limiting 
> things.

I haven't been keeping up with the changes to Lua, but does Lua allow
any supported data type (including user types) to be used as an index
into a table?  If not, it certainly should, as there isn't much cost in
supporting this.  All I would think would be necessary would be to
define a "generate hash" tag method for each data type.  Each data type
can then produce a hash value that is suitable for the data type.