-
This is the code I wrote to test nested clone/synchronize:
"Clone level 1" and "Clone level 2" appear 3 and 9 times in the result, as expected, but "Back to level 1" only appears once. How can I get the inner synchronize() to only apply to the inner clone()? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There is no concept of "inner" or "outer". Calling clone several times for the same arrival (or clones of it) just creates more clones, so |
Beta Was this translation helpful? Give feedback.
-
I see. Is there any way of getting the behaviour I want? The following hits each
If I want to copy over all attributes from the first (or last) arrival to enter a batch, can that be done? |
Beta Was this translation helpful? Give feedback.
There is no concept of "inner" or "outer". Calling clone several times for the same arrival (or clones of it) just creates more clones, so
synchronize()
synchronizes all of them.