Skip to content

Commit

Permalink
Add Callable role; make Code do it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 26, 2011
1 parent 9cc88cc commit ec37e1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/Callable.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
my role Callable {
}
2 changes: 1 addition & 1 deletion src/core/Code.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
my class Code {
my class Code does Callable {
multi method ACCEPTS(Code:D $self: $topic) {
$self.count ?? $self($topic) !! $self()
}
Expand Down
1 change: 1 addition & 0 deletions tools/build/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ CORE_SOURCES = \
src/core/control.pm \
src/core/Positional.pm \
src/core/Associative.pm \
src/core/Callable.pm \
src/core/Mu.pm \
src/core/Any.pm \
src/core/Code.pm \
Expand Down

0 comments on commit ec37e1b

Please sign in to comment.