[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Serializing Lua Functions
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Thu, 7 Dec 2006 14:51:26 -0800
Out of curiosity, has anyone made an attemp to serialize Lua functions
which could potentially be streamed across a network? What I'm
looking for is something like this...
local streamThisFunction =
function()
--params exist elsewhere in script
function(state, someValues, otherParams)
end
SendToNetwork(streamThisFunction)
When streamThisFunction is received by another computer, they are able
to call streamThisFunction() and have it behave as if it were called
on the original sender's machine.
If no one has done this, what might be invloved in doing it?
thanks,
wes