Created
January 29, 2014 10:01
-
-
Save SaitoAtsushi/8684929 to your computer and use it in GitHub Desktop.
Ypsilon 0.9.6-trunk/r503 でエラーになるでよ
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
#!r6rs | |
(library (library-a) | |
(export with-library-a) | |
(import (rnrs) (library-accessor)) | |
(define x 'library-a) | |
(define-accessor-for-outer-of-library with-library-a) | |
) |
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
#!r6rs | |
(library (library-accessor) | |
(export define-accessor-for-outer-of-library) | |
(import (rnrs)) | |
(define x 'library-accessor) | |
(define-syntax define-accessor-for-outer-of-library | |
(lambda(stx) | |
(syntax-case stx () | |
((k name) | |
#'(define-syntax name | |
(lambda(stx) | |
(syntax-case stx () | |
((_ p) | |
(datum->syntax #'k (syntax->datum #'p)))))))))) | |
) |
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
#!r6rs | |
(import (rnrs) (library-a)) | |
(define x 'test) | |
(display (with-library-a x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment