[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Pre-compiler / Lua side userdata
- From: Mark Hamburg <mark@...>
- Date: Mon, 12 Oct 2009 14:15:32 -0700
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