This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: virtual constructors



[ following up to myself ]

mikel@opal.co.il (Michael N. Livshin) writes:

> If you want the first argument to be an interface and not a mapping,
> just define a trivial wrapper function like this:
> 
> (define (make-by-obj obj . rest)
>   (apply make   ;; your interface mapping method
>          obj
           ^^\
              this should be `(interface-mapping obj)', of course.
>          rest))

> HTH,
> mike.

Doh.