Hi,

I would like to make an environment in which I can use streams.
stream-cons in srfi-40 is surely written as a macro,
and is not be able to be included in a new environment.

Any workaround for this?

Daishi


 ___| |    _)      |
|     __ \  |  __| |  /  _ \ __ \
|     | | | | (      <   __/ |   |
\____|_| |_|_|\___|_|\_\\___|_|  _|

Version 2.5 - linux-unix-gnu-x86 - [ dload ptables applyhook ]
(c)2000-2006 Felix L. Winkelmann
#;1> (use environments srfi-40)
; loading /usr/local/chicken-2.5/lib/chicken/1/srfi-40.scm ...
; loading /usr/local/chicken-2.5/lib/chicken/1/environments.so ...
; loading /usr/local/chicken-2.5/lib/chicken/1/srfi-40-base.so ...
#;2> (define env (make-environment))
#;3> (environment-extend! env 'stream-cons stream-cons)
Error: unbound variable: stream-cons

       Call history:

       <eval>          (environment-extend! env (quote stream-cons)
stream-cons)       <--


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to