[r6rs-discuss] [Formal] file-opens should be a procedure

From: Michael Sperber <sperber>
Date: Thu Oct 5 07:43:18 2006

John Cowan <cowan_at_ccil.org> writes:

> Michael Sperber scripsit:
>
>> Did you see that a `file-options' evaluates to an enum-set? That
>> makes it possible to construct a file-options object from a list of
>> symbols, for example. The `file-options' form is convenience syntax
>> for the (by-far most) common case, and the bootstrap to get you into
>> the appropriate enum set, where all kinds of kung fu are available.
>
> Ah. Request withdrawn in favor of providing an example of this usage.

You mean like this?

(define (list->file-options l)
  ((enum-set-constructor (file-options)) l))

(Untested, but you get the idea.)

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Thu Oct 05 2006 - 07:42:59 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC