[DGD] closure simulation under dgd

Carter Cheng cartercheng at gmail.com
Sun Feb 23 17:18:25 CET 2014


Thanks Felix.


On Wed, Feb 5, 2014 at 11:09 PM, Felix A. Croes <felix at dworkin.nl> wrote:

> 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
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>



More information about the DGD mailing list