How Do I ... : Write Smalltalk scripts : See what a script is
See what a script is
Write Smalltalk scriptsWrite Smalltalk scriptsNo tips for this topicNo example for this topicOpen a Script Editor on my partOpen a Script Editor on my part
A script is Smalltalk code that implements action for a part. A script is also known as a method.
An example of a script is as follows:
wordsToShow
"Return the string: Later text."
| words |
words := 'Later text'.
^words
This script named wordsToShow, when run, returns the words Later text.
A script usually has the following format:
scriptName
"comment"
| temporary variables |
Smalltalk code
Last modified date: 08/09/2019