[DGD] lambda operator re-re-visited?

Felix A. Croes felix at dworkin.nl
Tue Jan 3 21:04:17 CET 2017


Carter Cheng <cartercheng at gmail.com> wrote:

>[...]
> Recompiling L should be handled by a
> special mechanism like a kfun with proper inspection i.e. reporting as a
> string what the code was initially and what variables are captured and
> their current constant values.

This does not address the main issue.  Anonymous functions cannot be
linked to an upgrade path, even if the source code is known.

For instance, the following code:

    function bar1() { return &foo(); }
    function bar2() { return &foo(); }

is upgraded to:

    function bar1() { return &foo(); }
    function bar2() { return &gnu(); }

An anonymous function exported by this object has no unambiguous
upgrade path.

Regards,
Felix Croes



More information about the DGD mailing list