Navigation: »No topics above this level«
When you are working in a workspace it is very useful to be able to assign the results of your expression evaluations to variables. You can, of course, use the normal Smalltalk temporary variable syntax (e.g.| myVar1 myVar2 |) but this is often inconvenient since the variables will go out of scope as soon as the evaluation has completed.
Instead, the Dolphin workspace provide you with the possibility of using Workspace Variables. If you make a standard Smalltalk assignment to a variable beginning with a lowercase letter there is very all will be automatically created and held by the workspace itself.
Note: If you try to assign to a variable starting with an uppercase letter, the workspace will, instead, prompt to see if you wish to create a global in the Smalltalk dictionary.
myVar := 200 factorial. "Evaluate it"
myVar. "Display it"
Please note that workspace variables remain in existence (and hold onto the objects which are assigned to them) until the workspaces close or they are explicitly deleted. The variables are held in a Pool Dictionary which can be inspected using the Workspace/Variables command. From this Inspector you can choose to edit the variables or remove them.