Skip to content

Commit

Permalink
Clear up EXPORT hackery in favor of the new 'is export' trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 16, 2012
1 parent 3fac7df commit 2ea2f89
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/QRegex/Cursor.nqp
@@ -1,4 +1,4 @@
role NQPCursorRole {
role NQPCursorRole is export {
has $!orig;
has str $!target;
has int $!from;
Expand Down Expand Up @@ -609,9 +609,4 @@ class NQPRegex is NQPRegexMethod {
NQPCursor.parse($target, :rule(self), :c(0))
}
}

my module EXPORT {
our module DEFAULT {
$?PACKAGE.WHO<NQPCursorRole> := NQPCursorRole;
}
}

0 comments on commit 2ea2f89

Please sign in to comment.