Skip to content

Commit

Permalink
Implement trait_mod:<is> for rw on packages. Not checked for yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 2, 2010
1 parent 4715825 commit ac5e926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/traits.pm
Expand Up @@ -12,6 +12,10 @@ our multi trait_mod:<is>(Mu $child, Role $r) {
$child.^add_parent($r!select!pun);
}

multi trait_mod:<is>(Mu $type where { !.defined }, :$rw!) {
$type.HOW does role { method rw { True } }
}

role Positional { ... }
role Associative { ... }
our multi trait_mod:<of>(ContainerDeclarand $cont, Mu \$type) {
Expand Down

0 comments on commit ac5e926

Please sign in to comment.