[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SICP stream question
From: |
Michael Livshin |
Subject: |
Re: SICP stream question |
Date: |
27 Apr 2001 20:44:38 +0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft) |
Chris Baker <address@hidden> writes:
> Is define-macro portable across the various scheme implementations?
no less portable than procedure->macro . ;)
> The only thing I could find in r5rs was define-syntax, which I
> couldn't get to work.
(use-syntax (ice-9 syncase)) ; this is currently needed for R5RS
; macros to work in Guile
(define-syntax cons-stream
(syntax-rules ()
((_ ?car ?cdr) (cons ?car (delay ?cdr)))))
--
A true Klingon Warrior does not comment his code!
-- Klingon Programmer