I appreciate all the feedback. I learned a lot about the SmallTalk Dictionary this way. "Smalltalk removeKey: #MyGlobal" worked great of course, however I'm now just using "reset variables" in the Shout Workspace window. Even though the latter will clear them all, is there a clear path towards "show me all the variables I've made in the Workspace" ? I realize building full objects would be more correct for a final project, however the tutorials (and my own tinkering) usually find me creating quick things in a Workspace to experiment and I'm just making sure I know and understand how to clean it up later. Will Pharo possibly add any visual behavior to keep track of "floating" objects or add a "variables" window for workspaces? -- John John E. wrote:
For most tutorials (I'm using squeak tutorials), one does a lot of work in a workspace.
If I make a new global variable such as:
MySquare := Morph new
...once I define "MySquare" as a global variable I know I can send it many messages like:
MySquare openInWorld MySquare color: Color yellow
When I'm done and I close the workspace, save the image and save the image. When I open it again it will know what "MySquare" is known in any workspace.
How do I remove "MySquare" and/or the associated object? How could I see or find other such global variables?
- John
-- View this message in context: http://n2.nabble.com/Where-declared-global-reside...-how-can-they-be-removed... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.