On 03/04/2011 07:54 PM, ZuLuuuuuu wrote:
How can one list the variable names defined in a workspace or in a REPL
session?
For example, after executing these commands on terminal:
$ gst
GNU Smalltalk ready
st> foo := 2
2
st> bar := 3
3
I want to get the variable names 'foo' and 'bar' in a collection or
something.
Here is a huge hack:
xyxyxyxy := nil. (#{xyxyxyxy} instVarAt: 3) keys
:)
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk