Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
re-add Mu to P6Objects; makes the entire test suite pass but the one …
…that does regexes. sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++ sorear++
  • Loading branch information
diakopter committed Nov 6, 2011
1 parent 2f1109b commit ed3b34c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions common/NQP/P6Objects.pm
@@ -0,0 +1,32 @@

class Mu {
method new() {
self.CREATE()
}

method CREATE() {
nqp::instance_of(self)
}

proto method Str() { * }
multi method Str(Mu:U $self:) {
self.HOW.name(self) ~ '()'
}

proto method ACCEPTS($topic) { * }
multi method ACCEPTS(Mu:U $self: $topic) {
nqp::type_check($topic, self.WHAT)
}

method defined() {
nqp::repr_defined(self)
}

method isa($type) {
self.HOW.isa(self, $type)
}

method Bool() {
nqp::repr_defined(self)
}
}

0 comments on commit ed3b34c

Please sign in to comment.