[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] functors
From: |
Felix |
Subject: |
Re: [Chicken-hackers] functors |
Date: |
Thu, 24 Mar 2011 21:10:06 +0100 (CET) |
From: Moritz Heidkamp <address@hidden>
Subject: Re: [Chicken-hackers] functors
Date: Thu, 24 Mar 2011 12:12:50 +0100
> Maybe I didn't understand it all correctly but is there syntax for
> folding that into one definition? E.g. something like this:
>
> (module number-squarer ((instantiates: squaring-functor))
> (import scheme)
> (define (multiply x y) (* x y)))
>
One possible syntax would be:
(module number-squarer = squaring-functor
(import scheme)
...)
cheers,
felix