Skip to main content
Participant
Jul 8, 2019 8:25 AM UTC
Answered

Save/Restore simple objects that are parts of composite objects

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 is closed to new replies. Start a new post to keep the conversation going.
Test Screen NameCorrect answer
Legend
Jul 8, 2019 8:44 AM UTC

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.

3 replies

Legend
Jul 8, 2019 8:42 AM UTC

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).

Translate
Test Screen NameCorrect answer
Legend
Jul 8, 2019 8:44 AM UTC

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.

Translate
skolodAuthor
Participant
Jul 8, 2019 9:31 AM UTC

Thank, you very much for quick answer.

Translate