Last active
January 26, 2018 18:55
-
-
Save vyzo/574775c026cc9f4e7f3dcf8f6f8be1e9 to your computer and use it in GitHub Desktop.
negative phase imports
This file contains 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
$ cat for-syntax.ss | |
(import (phi: -1 :tmp/for-template)) | |
(displayln "for-syntax") | |
$ cat for-template.ss | |
(displayln "for-template") | |
$ cat program.ss | |
(import (phi: +1 :tmp/for-syntax)) | |
(export main) | |
(def (main . args) | |
(void)) | |
$ gxc for-syntax.ss for-template.ss | |
$ gxc -exe -o program program.ss | |
for-syntax | |
$ ./program | |
for-template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment