Created
January 16, 2018 15:23
-
-
Save vendethiel/9e20afc889e1d042117784b5604a158f to your computer and use it in GitHub Desktop.
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
$ bin/007 -e='macro moo(x) { return quasi { (sub() { my y = {{{x}}} })() }; }; say(moo(42))' | |
scopes: | |
macro moo(x) | |
- variable x. Contains a Q::Literal::Integer (...). | |
quasi | |
sub | |
- variable y. | |
- refers to x. x's scope is the macro's. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment