[Top][All Lists]

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

Re: Should I add cond-expand to boot-9.scm?

From: Rob Browning
Subject: Re: Should I add cond-expand to boot-9.scm?
Date: 11 May 2001 11:26:56 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Neil Jerram <address@hidden> writes:

> Is it right for Guile's features list to include all the srfi-N's
> irrespective of whether the corresponding modules have been loaded?

Oh.  I didn't look at the implementation.

I tend to think that the cond-expand should only work if the right
use-modules statement has been made.  So portable code would have:

    (guile (use-modules (srfi srfi-19)))
    (else #f))


    (define julian-day current-julian-day))
    (define (julian-day)
      ;;; pretend

If it would be useful, I wrote a cond-expand that allows sub-modules
to add things to the cond-expand "features list", so a (use-modules
(srfi srfi-19)) could make a call to enable the srfi-19 feature.  I'm
not sure how this would work wrt compilation, though.  I'd have to
think about it.

Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930

reply via email to

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