guile-devel
[Top][All Lists]
Advanced

[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



reply via email to

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