Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created August 12, 2016 14:45
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 zoffixznet/b7e29eb8f24e8a8b6c1b7509914df6c0 to your computer and use it in GitHub Desktop.
Save zoffixznet/b7e29eb8f24e8a8b6c1b7509914df6c0 to your computer and use it in GitHub Desktop.
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