Re: returning multiple distinct closures

2012-02-24 Thread Alexander Burger
On Thu, Feb 23, 2012 at 09:48:14PM -0300, José Romero wrote: Your problem is using the quote function instead of making a copy of the list on return, this rewritten version should work: (de lazy Prg (list NIL (list 'job (list 'quote (cons 'Value delayed)) (list 'if '(==

Re: returning multiple distinct closures

2012-02-24 Thread José Romero
I've been thinking on the problem a bit and found another way to tackle it, using this incredibly *UGLY* function (all of them formatted as the output of 'pp, I have no idea how to make it more aesthetically pleasing): (de lazy Prg (let L (box (cons)) (con (val L) (list

Re: returning multiple distinct closures

2012-02-24 Thread Alexander Burger
Hi José, I've been thinking on the problem a bit and found another way to tackle it, using this incredibly *UGLY* function (all of them formatted as the output of 'pp, I have no idea how to make it more aesthetically pleasing): Me neither ;-) (de lazy Prg (let L (box (cons))