[DGD] closure simulation under dgd
Felix A. Croes
felix at dworkin.nl
Wed Feb 5 16:09:24 CET 2014
Carter Cheng <cartercheng at gmail.com> wrote:
> I am curious if it would be possible to implement something along the lines
> of function pointers + function expressions under dgd via hacking the
> driver and how much work it would be. It seems like it should be possible
> to construct a special type of object function object which holds the
> details of the function and have the closure initialized to certain values
> when it is created and then use the closure the same way one would call
> ob->foo on an object.
Compile DGD with -DCLOSURES, then check the source code to see how much
of what you want is already implemented.
Regards,
Felix Croes
More information about the DGD
mailing list