You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The newElement will end up aliasing the same remote object. More precisely, it'll refer to the same operand register as original (on the lowest-level of Remote Ops bytecode).
A Set instruction is emitted in the bytecode that assigns the original element to a new operand register in the bytecode.
This means that two things that typically should work the same (the copy ctor and assignment operator) end up with subtly different behavior.
This issue tracks making a decision about this -- whether to try to make any changes to make these two operations work the same way or whether to document this rough edge as expected/by design.
The text was updated successfully, but these errors were encountered:
In a way this is related to #6 -- except for ints the current behavior seems obviously broken. Perhaps that should be an indication that we should make a fix across the board where copy ctors just do the same thing as assignment operators.
mlalic
changed the title
UiaElement ctor and assignment operator do subtly different things
UiaElement copy ctor and assignment operator do subtly different things
Oct 7, 2020
In the following snippet...
The
newElement
will end up aliasing the same remote object. More precisely, it'll refer to the same operand register asoriginal
(on the lowest-level of Remote Ops bytecode).Meanwhile, in the following...
A
Set
instruction is emitted in the bytecode that assigns the original element to a new operand register in the bytecode.This means that two things that typically should work the same (the copy ctor and assignment operator) end up with subtly different behavior.
This issue tracks making a decision about this -- whether to try to make any changes to make these two operations work the same way or whether to document this rough edge as expected/by design.
The text was updated successfully, but these errors were encountered: