[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:
(cond-expand
(guile (use-modules (srfi srfi-19)))
(else #f))
...
(cond-expand
(srfi-19
(define julian-day current-julian-day))
(else
(define (julian-day)
;;; pretend
10352)))
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
- Should I add cond-expand to boot-9.scm?, Martin Grabmueller, 2001/05/10
- Re: Should I add cond-expand to boot-9.scm?, Rob Browning, 2001/05/10
- Re: Should I add cond-expand to boot-9.scm?, Marius Vollmer, 2001/05/10
- Re: Should I add cond-expand to boot-9.scm?, Martin Grabmueller, 2001/05/11
- Re: Should I add cond-expand to boot-9.scm?, Neil Jerram, 2001/05/11
- Re: Should I add cond-expand to boot-9.scm?,
Rob Browning <=
- Re: Should I add cond-expand to boot-9.scm?, Martin Grabmueller, 2001/05/14
- Re: Should I add cond-expand to boot-9.scm?, Rob Browning, 2001/05/14
- Re: Should I add cond-expand to boot-9.scm?, Marius Vollmer, 2001/05/14
- Re: Should I add cond-expand to boot-9.scm?, Marius Vollmer, 2001/05/14
- Re: Should I add cond-expand to boot-9.scm?, Rob Browning, 2001/05/14
- Re: Should I add cond-expand to boot-9.scm?, Martin Grabmueller, 2001/05/15
- Re: Should I add cond-expand to boot-9.scm?, Marius Vollmer, 2001/05/15