Fandom

Scratchpad

GST Q&A

215,814pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

GNU Smalltalk: Q & A


  • What is all this Scavenging...
  • How do I include other files?
  • Is there a way to get the command line arguments from a gst script from within smalltalk?
  • Does GNU Smalltalk have a logo?
  • How do I get out of gst?
  • How do I make a runnable script in Linux?

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.


Back to GST Documentation

Also on Fandom

Random wikia