Displaying 1 result from an estimated 1 matches for "do_subassign3_dflt".
Did you mean:
do_subassign2_dflt
2013 Jan 09
2
Bug in list subset assignment due to NAMED optimization
...ng the
updated `a` rather than the RHS of the assignment. The second sequence in
both cases is correct; the assignment to `b` increments the NAMED value
causing the necessary copy to be made so the RHS is returned from the
assignment.
Would it be sufficient to add a check to do_subassign2_dflt
and do_subassign3_dflt that creates a duplicate of the LHS if the LHS & RHS
are the same object?
Justin
[[alternative HTML version deleted]]