Created
February 4, 2014 07:41
-
-
Save ktakashi/8799591 to your computer and use it in GitHub Desktop.
Should this be an error?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import (rnrs)) | |
(define-syntax outer-define | |
(lambda (x) | |
(syntax-case x () | |
((_ name def) | |
#'(define-syntax name | |
(lambda (xx) | |
(syntax-case xx () | |
((_ val) | |
#'(define def val))))))))) | |
(outer-define defvar1 var1) | |
(defvar1 1) | |
(display var1) (newline) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment