Snapshots
Snapshots are a unique feature of OneScript to support the ability to move back and forth in an application by defining a snapshot
of the application to jump back to later.
A snapshot will hold information about the virtual machine position in the code and the restoration of a snapshot will automatically jump the flow of the application back to the statement directly after the save snapshot statement with the equivalent name.
The power of a snapshot can be appreciated within objects that support iteration, where their state can be saved between snapshots. For example,
Last updated