lua-users home
lua-l archive

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



On Mon, Oct 12, 2009 at 2:15 PM, Mark Hamburg <mark@grubmah.com> wrote:
It sounds like you just need a hash value and not that the C side needs to assign that value. At least that's my reading of your desire to avoid a C side dependency for creating the values. Could you just use the fact that Lua 5.1 strings don't move (at least if they don't get collected and you could deal with that by shoving them in a table) and using the address of the string as the input to the hash function?

Mark


This doesn't work since we actually use CRC-32 as our hash.