guile-devel
[Top][All Lists]
Advanced

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

Re: On cond-expand, once again


From: Marius Vollmer
Subject: Re: On cond-expand, once again
Date: 22 May 2001 22:15:37 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Martin Grabmueller <address@hidden> writes:

> Hello again,
> 
> I have now reworked cond-expand wrt. the module system, but not
> committed yet.  Modules can now provide features as a list of symbols
> using the procedure:
> 
>   ;; Add one or more features to the `cond-expand' feature list of the
>   ;; module `module'.
>   ;;
>   (define (cond-expand-provide module features)
>         <snipped>)
> 
> It is used like this (taken from srfi/srfi-2.scm):
> 
>   (cond-expand-provide (current-module) '(srfi-2))

I like this very much.  This should be useful not only for SRFIs, but
also for what is now called `*features*'.  `*features*' could be made
into the feature list of the `(guile)' module.
 
> For ease of implementation, I have decided to just keep the mapping of
> modules to features in a hash table.

Can you use `make-object-property'?

> If nobody objects, I will simply commit it and you can have a look for
> yourself.

Yes, please.  This ought to go into 1.6.0.



reply via email to

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