This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: receive


Eric Marsden writes:
 > >>>>> "ks" == Klaus Schilling <Klaus.Schilling@home.ivm.de> writes:
 > 
 >   ks> I'm trying to get the reference implementation of Olin Shivers'
 >   ks> list utilities to run as guile module. It uses a special
 >   ks> syntactic construct named `receive'. Anyone know how to
 >   ks> translate it into something guile understands? It seems to be
 >   ks> related to values and call-with-values.
 > 
 > The original definition (from scsh, so its copyright applies) is
 > 
Ouch, the scsh copyright is not compatible with the GNU GPL.

 >    (define-syntax receive
 >      (syntax-rules ()
 >        ((receive (?var ...) ?producer . ?body)
 >         (call-with-values (lambda () ?producer)
 >           (lambda (?var ...)
 >             (note-name! ?var '?var) ...
 >             (let () . ?body))))))

So one needs to avoid receive routines if one wants to a list utility
library that can be used in works that are under the normal guile
license?

Another problem is that hobbit does not support syntax rules, and it
would be fine if this relatively huge file could be hobbitted.
Or maybe hobbit does support syntax rules by now, but it was not the
case last year.

Klaus Schilling

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]