chicken-users
[Top][All Lists]
Advanced

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

Re: Help porting someone else's macro from 4 to 5.


From: kooda
Subject: Re: Help porting someone else's macro from 4 to 5.
Date: Tue, 21 Jan 2020 12:56:44 +0100
User-agent: OtterMail

Andrew Mack <address@hidden> wrote:
> Looking through various chicken documentation, my first assumption was
> to wrap the lambda argument to define-syntax in an er-macro-transformer
> call. However this does not recognize append-map (of course defined in
> srfi-1) as bound. I thought that it might also need to be renamed with
> (r 'append-map) but this also did not work. 
> 

Indeed you have to wrap the lambda into `er-macro-transformer`.

For the append-map issue, I’m pretty sure this means the srfi-1 library
is not loaded at macro-expand time, you can do so with
`(import-for-syntax srfi-1)`.
http://wiki.call-cc.org/man/5/Modules#import-for-syntax

Hope this helps. :)

reply via email to

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