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

Michael Sperber sperber at informatik.uni-tuebingen.de
Thu Oct 5 07:42:59 EDT 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



More information about the r6rs-discuss mailing list