[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua hash algorithm
- From: "John Passaniti" <jpass@...>
- Date: Thu, 20 Jun 2002 11:13:23 -0400
> 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.