Skip to main content
Participant
July 8, 2019
Answered

Save/Restore simple objects that are parts of composite objects

  • July 8, 2019
  • 1 reply
  • 364 views

What values will be in array after Restoring, if before Saving they were [1, 2, 3], after saving changed to [5, 6, 7]?

This topic has been closed for replies.
Correct answer Test Screen Name

In case that wasn't clear, the simple values in a composite object are not separate items, but are part of the composite object. Bear in mind that [5 6 7] is a new composite object, you'd have to use put or putinterval to update the elements of an existing object.

1 reply

Legend
July 8, 2019

The restore puts back all non-global composite objects to their contents before the matching save.  The magic by which this happens is implementation dependent, but one way to think of it is that all non-global composite objects are saved in a container on the save, and put back on the restore. (This is not how it works, but what seems to happen).

Test Screen NameCorrect answer
Legend
July 8, 2019

In case that wasn't clear, the simple values in a composite object are not separate items, but are part of the composite object. Bear in mind that [5 6 7] is a new composite object, you'd have to use put or putinterval to update the elements of an existing object.

skolodAuthor
Participant
July 8, 2019

Thank, you very much for quick answer.