In a custom clone function, we may need to do a clone on the old value first, then update some fields of cloned value manually. To enable us to work like this, allocator.Clone and allocator.CloneSlowly can temporarily disable custom clone function on the old value to avoid dead loop.
See example ExampleSetCustomFunc_partiallyClone for more details.
In a custom clone function, we may need to do a clone on the old value first, then update some fields of cloned value manually. To enable us to work like this,
allocator.Clone
andallocator.CloneSlowly
can temporarily disable custom clone function on the old value to avoid dead loop.See example
ExampleSetCustomFunc_partiallyClone
for more details.