copying: fold in graph copying (shared nodes, cycles, identity-map fix), serialization rules (constructors, record canonical constructor, ObjectInputFilter), record array components, clone() as a defensive copy, two more compile-error exhibits; 24 tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4BL3cEPHQTk2McE7C
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
== 1. RawPacket keeps the caller's array and returns its own ==
|
||||
after raw[0] = 99 : [99, 2, 3]
|
||||
after rp.data()[1] = 88 : [99, 88, 3]
|
||||
|
||||
== 2. Packet copies in the constructor and in the accessor ==
|
||||
after the same two writes : [1, 2, 3]
|
||||
|
||||
== 3. The generated equals() still compares the arrays by identity ==
|
||||
new Packet({1}).equals(new Packet({1})) : false
|
||||
Reference in New Issue
Block a user