Skip to content
Browse files

[proof-of-concept] s:4x/but/does/

The difference between the C<but> and C<does> operators is that the latter
makes a clone of the object before mixing in the role. If we're not interested
in keeping the original, un-mixed-in object, we might as well use C<does>.
  • Loading branch information...
1 parent 51a003c commit fbdeee68d8e2f02486b12433982f0a373f102587 @masak committed Jul 3, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 proof-of-concept
View
8 proof-of-concept
@@ -330,10 +330,10 @@ sub MAIN(Bool :$force) {
my $core = App::Pls::Core.new(
:projects($projstate),
:ecosystem( POC::Ecosystem.new(:filename("poc-projects.list")) ),
- :fetcher( POC::Fetcher.new() but POC::FetchAnnouncer ),
- :builder( POC::Builder.new() but POC::BuildAnnouncer ),
- :tester( POC::Tester.new() but POC::TestAnnouncer ),
- :installer( POC::Installer.new() but POC::InstallAnnouncer ),
+ :fetcher( POC::Fetcher.new() does POC::FetchAnnouncer ),
+ :builder( POC::Builder.new() does POC::BuildAnnouncer ),
+ :tester( POC::Tester.new() does POC::TestAnnouncer ),
+ :installer( POC::Installer.new() does POC::InstallAnnouncer ),
);
# RAKUDO: Below line required because non-supplied named Bool

0 comments on commit fbdeee6

Please sign in to comment.
Something went wrong with that request. Please try again.