Skip to content

Instantly share code, notes, and snippets.

@vendethiel
Created August 23, 2019 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vendethiel/b83e27cacb8ea2b4c74d6d7dd447519b to your computer and use it in GitHub Desktop.
Save vendethiel/b83e27cacb8ea2b4c74d6d7dd447519b to your computer and use it in GitHub Desktop.
macro f($name) {
quasi {
COMPILING::{ $name } = 10; # $name here doesn't make sense but w/e
my $f = "def";
COMPILING::{ $f } = 20; # this = not ok?
}
}
f("$declare-me");
say $declare-me;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment