Bill Allombert on Wed, 19 Nov 2014 23:36:20 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: New GP function self() for recursive anonymous functions


On Tue, Nov 18, 2014 at 12:16:34AM +0100, Bill Allombert wrote:
> On Mon, Nov 17, 2014 at 03:51:19PM -0500, Charles Greathouse wrote:
> > I think that self() is very useful and I've wanted it for some time (but
> > unwilling to ask, since there have been so many things to be done). But is
> > it efficient? I see that it gcopies the function.
> 
> Indeed, this is a good objection. But I do not know how to do that without
> either a new opcode or a new parser code.

Well, I finally found what was the problem with the copy optimiser.
So now, self use the prototype code m and do not use gcopy.

Cheers,
Bill.