Skip to content

Instantly share code, notes, and snippets.

@vyzo
Last active January 26, 2018 18:55
Show Gist options
  • Save vyzo/574775c026cc9f4e7f3dcf8f6f8be1e9 to your computer and use it in GitHub Desktop.
Save vyzo/574775c026cc9f4e7f3dcf8f6f8be1e9 to your computer and use it in GitHub Desktop.
negative phase imports
$ 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