chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] macroexpansion and csc


From: felix winkelmann
Subject: Re: [Chicken-users] macroexpansion and csc
Date: Fri, 21 Mar 2008 23:09:03 +0100

On Fri, Mar 21, 2008 at 8:51 PM, Lui Fungsin <address@hidden> wrote:
> On 3/21/08, John Cowan <address@hidden> wrote:
>
> > > ;; test1.scm
>  > > (declare (uses srfi-13))
>  > >
>  > > (eval-when (compile load eval)
>  > >   (require-extension srfi-13))
>  >
>  > Instead of this, try (use srfi-13), which is supposed to handle all
>  > such problems.
>
>  Thanks for the suggestion, although I don't really understand what's
>  the difference between those declarations.
>
>  Unfortunately, this still fails.
>
>
>  ;;  test1.scm
>
>  (use srfi-13)
>

The declaration and the "use" both mark srfi-13 as being a *runtime*
requirement. You want it at compile-time, so you can do either

(eval-when (compile eval load) (use srfi-13))

or:

(require-for-syntax 'srfi-13)


cheers,
felix




reply via email to

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