-
-
Save kanatohodets/8b91ac50317dc48a7872 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
use v6; | |
sub foo { | |
say "in foo"; | |
do do { | |
say "inside block"; | |
sleep 1; | |
&?ROUTINE(); | |
} | |
} | |
say &foo.WHICH; | |
foo(); | |
# prints 'in foo; inside block; inside block; inside block...' |
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
use v6; | |
sub foo { | |
say "in foo"; | |
do do { | |
say "inside block"; | |
sleep 1; | |
if 1 { | |
&?ROUTINE(); | |
} | |
} | |
} | |
say &foo.WHICH; | |
foo(); | |
# prints 'in foo; inside block; in foo; inside block...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment