Skip to content

Commit

Permalink
Handle cloning/setting braids between NQPCursor and Perl6 Cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed Mar 26, 2017
1 parent c247728 commit 383e75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QRegex/Cursor.nqp
Expand Up @@ -190,10 +190,10 @@ role NQPCursorRole is export {
nqp::existskey(nqp::getattr($!braid, Braid, '$!slangs'),"H:$name");
}

method set_braid_from($other) { nqp::bindattr(self, $?CLASS, '$!braid', nqp::getattr($other, $?CLASS, '$!braid')); self }
method clone_braid_from($other) { nqp::bindattr(self, $?CLASS, '$!braid', nqp::getattr($other, $?CLASS, '$!braid')."!clone"()); self }

method braid() { $!braid }
method set_braid_from($other) { nqp::bindattr(self, $?CLASS, '$!braid', $other.braid); self }
method clone_braid_from($other) { nqp::bindattr(self, $?CLASS, '$!braid', $other.braid."!clone"()); self }

method snapshot_braid() { $!braid."!clone"() }
method set_braid($braid) { nqp::bindattr(self, $?CLASS, '$!braid', $braid); self }

Expand Down

0 comments on commit 383e75b

Please sign in to comment.