guile-user
[Top][All Lists]
Advanced

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

Re: lazy evaluation: Goops class/instance customization


From: Maarten Grachten
Subject: Re: lazy evaluation: Goops class/instance customization
Date: Wed, 21 May 2003 16:51:19 +0200 (CEST)

On Wed, 21 May 2003, Mikael Djurfeldt wrote:

> Then, in order to get correct semantics, you should remove
> `primitive-eval' and instead use the following (untested) version of
> make-lazy:
> 
> (defmacro make-lazy (specification . body)
>   (let ((attributes (map (lambda (x)      
>                            (if (keyword? x)
>                                x
>                                `(delay ,x)))
>                          body)))
>                 `(make ,specification
>                        ,@attributes)))
> 

Ah. Indeed, that seems to work as well. But I don't really see where the 
crucial difference is. 
(not questioning the superiority of this solution :-)

Maarten





reply via email to

[Prev in Thread] Current Thread [Next in Thread]