---------- Forwarded message ----------
From: Stephane Le Dorze <[EMAIL PROTECTED]>
Date: Aug 2, 2007 1:15 PM
Subject: not thread based ...
To: [EMAIL PROTECTED]

Ok, back on this subject; I ve implemented kind of erlang Actors in Haxe.
Now the problem I face is serialisation of these actors (which are based on
closures).
The reflect Api do not allows me to 'see' the variable of an anonymous
function.
Is there any mean for me to obtain this?

basic example: if I have something like this:

    static    public    function impact (val)
    {
        return function (mess)
        {
            trace("Impact state");
            trace(val);

            return new Cont(idle());
        };
    }

Once the function called, I get an anonymous function which captured the val
variable.
I would like to serialise this and be able to restore it on need.

Another possibility that would work for me is to know the original function
that was called + its parameters...
Is this possible? (I think it depends on the underlying representation of
closures).

Obviously I can done all the tracking explicitely by hand but want to make
it easy to use by others and error prone.
any help on this?

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

Reply via email to