lua-users home
lua-l archive

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


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