We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated from rt.perl.org#127520 (status was 'rejected')
Searchable as RT127520$
The text was updated successfully, but these errors were encountered:
use MONKEY-TYPING; role R {}; augment class Str does R {};
say Str ~~ R; # True say IntStr ~~ Str; #True say IntStr ~~ R; #False
Sorry, something went wrong.
Thanks for the report.
To have IntStr take effect of the modifications, you need to recompose it. The same applies to stuff like adding methods too.
zoffix@VirtualBox:~/CPANPRC$ cat test.p6 use MONKEY-TYPING; role R {}; augment class Str does R {}; IntStr.^compose; say IntStr ~~ R;
zoffix@VirtualBox:~/CPANPRC$ perl6 test.p6 True
-- Cheers, ZZ | https://twitter.com/zoffix
The RT System itself - Status changed from 'new' to 'open'
@zoffixznet - Status changed from 'open' to 'rejected'
No branches or pull requests
Migrated from rt.perl.org#127520 (status was 'rejected')
Searchable as RT127520$
The text was updated successfully, but these errors were encountered: