gnu-smalltalk

GNU Smalltalk image save state


Working thro the guide making a new class. I can make a new or load an image file (.im) using gst command. I type in the code to make a Account class and can make a new class.

Question How do I save the class to the loaded image before closing gst window.

Next time I run gst the Account class is gone, and any instance, (a := Account new) I made is also gone.


Solution

  • The simplest way to save the image is by sending the message

    ObjectMemory snapshot