lua-users home
lua-l archive

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

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?