Command: save

NEST HelpDesk Command Index NEST Quick Reference

Name:
 save - save interpreter state in a state dictionary
Synopsis:
 save -> statedict true
Description:
 

Experimental function to save the interpreter state into a state dictionary.
The state can then be restored, using the command restore.
After restore, execution will resume with the next command after 'save'. 
The boolean return value can be used to branch execution after saving or restoring the state.

Examples:

save and restore can be used to implement non-local jumps within procedures and even between procedures. 
A saved state defines a jump position to which the execution can return by calling restore for this state.



SeeAlso:resore
Author:
 Marc-Oliver Gewaltig
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/sli-init.sli

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative