[gambit-list] (define ((...) ...)

Michele Zaffalon michele.zaffalon at gmail.com
Tue Aug 25 20:32:11 EDT 2009


I suppose I have to start Gambit with gsi -:s. Still it doesn't work:
invalid syntax.

On Tue, Aug 25, 2009 at 7:50 PM, Eduardo Cavazos<wayo.cavazos at gmail.com> wrote:
> Michele Zaffalon wrote:
>
>> Now, what doesn't (define ((L-free-particle mass) local) ... work with
>> Gambit? What is missing?
>
> You can create a new version of 'define' which behaves that way:
>
> (define-syntax define*
>   (syntax-rules ()
>     ((_ ((x . f1) . f2) . b)
>      (define* (x . f1)
>        (lambda f2 . b)))
>     ((_ . r)
>      (define . r))))
>
> The SICM text should have an explanation of this particular notation.
>
> Thanks to Derick Eddington for the definition.
>
> Ed
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>



More information about the Gambit-list mailing list