[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Pre-compiler / Lua side userdata
- From: Chris Gagnon <cgagnon@...>
- Date: Mon, 12 Oct 2009 15:36:43 -0700
On Mon, Oct 12, 2009 at 2:35 PM, Mark Hamburg <firstname.lastname@example.org>
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.