Skip to content

Commit

Permalink
Add optional positional parameter to archetypes method
Browse files Browse the repository at this point in the history
It is needed to support some improvements in Raku land.
  • Loading branch information
vrurg committed Jul 21, 2022
1 parent e3c4399 commit 6bbaf25
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/how/NQPClassHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ knowhow NQPClassHOW {
has @!BUILDPLAN;

my $archetypes := Archetypes.new( :nominal(1), :inheritable(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPConcreteRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ knowhow NQPConcreteRoleHOW {
has $!composed;

my $archetypes := Archetypes.new( :nominal(1), :composable(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPCurriedRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knowhow NQPCurriedRoleHOW {
has @!pos_args;

my $archetypes := Archetypes.new( :nominal(1), :composable(1), :parametric(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPModuleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knowhow NQPModuleHOW {
has $!composed;

my $archetypes := Archetypes.new( );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPNativeHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ knowhow NQPNativeHOW {
has $!composed;

my $archetypes := Archetypes.new( :nominal(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPParametricRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ knowhow NQPParametricRoleHOW {
has $!specialize_lock;

my $archetypes := Archetypes.new( :nominal(1), :composable(1), :parametric(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down

0 comments on commit 6bbaf25

Please sign in to comment.