GNU Smalltalk: Q & A


What is all this Scavenging...

During execution of GNU Smalltalk you'll see lines like: "Scavenging... 30% reclaimed, done". These lines are reports of the garbage collection system.

How do I include other files?

Simply call FileStream fileIn: 'filename.st' ! to load other files.

Is there a way to get the command line arguments from a gst script from with in smalltalk?

Yes. All arguments passed to GNU smalltalk after the '-a' flag will be passed to the script. The script will be able to read these using the Smalltalk arguments message. This will return an array with the arguments. Try running gst -a hello and then issue Smalltalk arguments inspect !.

Does GNU Smalltalk have a logo?

Officially not yet, but work is being done to get one.

How do I get out of gst?

Press CTRL-D on the console to close stdin and end your gst session.

How do I make a runnable script in Linux?

Start your source with the line: #!/usr/bin/env gst -f
Then use chmod a+x yourfile.st to make it into an executable script. Note that the extension (.st) doesn't matter in this case and can be left out.

Last update: July 02 2008
[Contact] [XHTML]
Copyright © Infosnel.nl