Loading

SNAPSHOTALLTOMARK


stack
Since v1.0.7
Available on all platforms
See also

The SNAPSHOTALLTOMARK functions acts similarly as SNAPSHOTTOMARK and produces a STRING which contains WarpScript code to regenerate the stack up to the first MARK in the exact same state as when SNAPSHOTALLTOMARK was called. It differs by the fact that it also adds code to repopulate the symbol table.

The MARK is consumed off the stack but will not be pushed back by the produced WarpScript code.

Note that some types of objects created by third party functions may not be serializable, SNAPSHOTALLTOMARK will emit a STRING of the form UNSUPPORTED: class xxx when such a type is encountered.

The elements of the stack are consumed up to the mark.

Signature

Examples

78 MARK 42 'a' STORE NOW 'foo' SNAPSHOTALLTOMARK