Created
August 12, 2016 14:45
-
-
Save zoffixznet/b7e29eb8f24e8a8b6c1b7509914df6c0 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
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ tree | |
. | |
├── One.pm6 | |
├── Two.pm6 | |
└── Volatile.pm6 | |
0 directories, 3 files | |
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ cat One.pm6 | |
unit class One; | |
method bar { EVAL 'use Volatile; Volatile.new.bar.say' } | |
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ cat Two.pm6 | |
unit class Two; | |
method bar { EVAL 'use Volatile; Volatile.new.bar.say' } | |
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ cat Volatile.pm6 | |
unit class Volatile; | |
has $.bar = 'meow2'; | |
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ perl6 -I. -MOne -MTwo -e 'One.new.bar; sleep 15; Two.new.bar' | |
meow | |
meow | |
zoffix@leliana:/tmp/tmp.rwUbjljNdi$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment