Alexander Nikitin a écrit :
Hi, Neko users!

I wonder if Neko is able to serializable its very own code objects?
If i write a simple snippet like
a=function(x){...}
b=serialize(a)

the exception 'Cannot serialize JIT method' is thrown.

Is there a standard or custom solution for this problem? (Needed to do
transparent code transfer, for example, on-the-fly code patching and
so on)

You cannot serialize functions, but you can serialize object prototypes, check http://nekovm.org/doc/view/serialize

Best,
Nicolas


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to