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:35 PM, Mark Hamburg <> wrote:
I think I need more information. On the one hand, you don't want there to be a need to change C code to add new event codes or other values in need of hashes. On the other hand, you care about the specific hash algorithm. Is this because sometimes these are generated from the C side and sometimes they exist purely on the Lua side?


I have an established event system used from the c+ side that uses compile time CRC-32 for events, we also utilize these when defining attributes and other things. I'm trying to extend that functionality to lua.

Since the events are dispatched through c++ anyone can be listening(lua or c++).
So there is no required change in c++ in the lua posts event and lua listens for event case.