We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69aa482 commit a8ba4b1Copy full SHA for a8ba4b1
src/QRegex/Cursor.nqp
@@ -1,4 +1,4 @@
1
-role QRegex::Cursor {
+role NQPCursorRole {
2
has $!orig;
3
has str $!target;
4
has int $!from;
@@ -263,11 +263,17 @@ class NQPMatch is NQPCapture {
263
}
264
265
266
-class NQPCursor does QRegex::Cursor {
+class NQPCursor does NQPCursorRole {
267
method match_class() { NQPMatch }
268
method Bool() is parrot_vtable('get_bool') {
269
!nqp::isnull(nqp::getattr(self, $?CLASS, '$!match'))
270
&& nqp::istrue(nqp::getattr(self, $?CLASS, '$!match'));
271
272
273
274
+
275
+my module EXPORT {
276
+ our module DEFAULT {
277
+ $?PACKAGE.WHO<NQPCursorRole> := NQPCursorRole;
278
+ }
279
+}
0 commit comments