Skip to content

Instantly share code, notes, and snippets.

@SaitoAtsushi
Created January 30, 2014 20:18
Show Gist options
  • Save SaitoAtsushi/8717885 to your computer and use it in GitHub Desktop.
Save SaitoAtsushi/8717885 to your computer and use it in GitHub Desktop.
Ypsilon 0.9.6-trunk/r503 で期待と異なる結果が返ってくる
#!r6rs
(library (reinterpret)
(export reinterpret)
(import (rnrs))
(define-syntax reinterpret
(lambda(stx)
(syntax-case stx ()
((_ x)
(free-identifier=? (datum->syntax #'k (syntax->datum #'x)) #'x)))))
)
#!r6rs
(import (rename (reinterpret) (reinterpret reinterpret:reinterpret))
(rnrs))
(display (reinterpret:reinterpret reinterpret:reinterpret))
;; expect #f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment