renamed '=' to '=copy' [backport:1.2] (#15585)
* Assign hook name changed to `=copy` * Adapt destructors.rst * [nobackport] Duplicate tests for =copy hook * Fix tests * added a changelog entry Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
parent
42c180c665
commit
da4aa2e1fb
17 changed files with 1001 additions and 29 deletions
|
|
@ -33,9 +33,9 @@ result = (
|
|||
var
|
||||
sibling
|
||||
saved
|
||||
`=`(sibling, target.parent.left)
|
||||
`=`(saved, sibling.right)
|
||||
`=`(sibling.right, saved.left)
|
||||
`=copy`(sibling, target.parent.left)
|
||||
`=copy`(saved, sibling.right)
|
||||
`=copy`(sibling.right, saved.left)
|
||||
`=sink`(sibling.parent, saved)
|
||||
`=destroy`(sibling)
|
||||
-- end of expandArc ------------------------
|
||||
|
|
@ -46,7 +46,7 @@ var
|
|||
lvalue
|
||||
lnext
|
||||
_
|
||||
`=`(lresult, [123])
|
||||
`=copy`(lresult, [123])
|
||||
_ = (
|
||||
let blitTmp = lresult
|
||||
blitTmp, ";")
|
||||
|
|
@ -67,10 +67,10 @@ try:
|
|||
var it_cursor = x
|
||||
a = (
|
||||
wasMoved(:tmpD)
|
||||
`=`(:tmpD, it_cursor.key)
|
||||
`=copy`(:tmpD, it_cursor.key)
|
||||
:tmpD,
|
||||
wasMoved(:tmpD_1)
|
||||
`=`(:tmpD_1, it_cursor.val)
|
||||
`=copy`(:tmpD_1, it_cursor.val)
|
||||
:tmpD_1)
|
||||
echo [
|
||||
:tmpD_2 = `$`(a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue