[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New command line option --use-srfi
From: |
Martin Grabmueller |
Subject: |
Re: New command line option --use-srfi |
Date: |
Wed, 23 May 2001 07:06:45 +0200 |
> From: Marius Vollmer <address@hidden>
> Date: 22 May 2001 21:00:38 +0200
>
> Martin Grabmueller <address@hidden> writes:
>
> > The problem I see is: You can't use cond-expand to detect for a
> > specific feature like srfi-2, because it is not loaded; but you also
> > cannot load it before you know you're using Guile and can use
> > `use-modules'.
>
> There is also the mode where you take some code unchanged, and put it
> in a `glue' context. Like
>
> (define-module (fancy-outside-stuff)
> :use-module (srfi srfi-2))
>
> ;; This uses cond-expand to check for SRFI-2
> (load "fancy-outside-stuff")
>
> (export ...)
>
> this is better than changing "fancy-outside-stuff.scm".
Right, hadn't thought about that.
'martin
- Re: New command line option --use-srfi, (continued)
Re: New command line option --use-srfi, Marius Vollmer, 2001/05/17
Re: New command line option --use-srfi, Marius Vollmer, 2001/05/21
Re: New command line option --use-srfi, Martin Grabmueller, 2001/05/22
Re: New command line option --use-srfi, Marius Vollmer, 2001/05/22