        |
MP1
I can't get this to work with version 3.9 of Squeak, so we will use version 3.8 for it. There is a 3.8 image at http://st-www.cs.uiuc.edu/users/johnson/598rej/Squeak3-8.tar.gz .After you unpack this, move the two files in the new directory to the same directory that you have 3.9, i.e. the directory that contains SqueakV3.sources. Then you can double-click on the image to start it. [Ralph Johnson]
Alternatively, it might be easier to just grab the entire package which contains everything that you need to run Squeak 3.8:
Mac: http://ftp.squeak.org/3.8/mac/Squeak3.8-6665-MacOS-Full.dmg.zip
Windows: http://ftp.squeak.org/3.8/win/Squeak3.8.1-current-win-full.zip
Linux: http://ftp.squeak.org/3.8/unix-linux/ (locate your platform)
This homework will walk you through the syntax of the Smalltalk language.
- First download the following file Homework1ProjectUpdated.pr
- Now load this file into Squeak. To do this you must bring up the "World Menu" - you can do this by clicking the "operate menu" on any place that does not have a window (e.g. in Windows you will press the left button of the mouse over any location outside of a window; in other operating systems there might be other ways to invoke the World menu - these were discussed in Homework 0). From the World menu choose "load project from file...". Browse now to the place where you downloaded Homework1ProjectUpdated.pr
- Two workspaces will open. One is a tutorial on Smalltalk and the Smalltalk browser. Follow it, and fill in answers in the spaces provided in the second workspace. When you're finished, cut-and-paste the answer workspace into an email, format it as text, and send the email to the TA following the instructions for handin.
Advice
It's more important to get a feel for the syntax and semantics of the Smalltalk language instead of just getting the answers right (since that just requires doing "Print it" or "Do it"). Pay attention to the following items:
- when to use print it, do it, inspect it, browse it, etc and how to access them using the mouse or keyboard shortcuts
- the operator precedence for unary, binary and keyword messages
- cascade operations
- block operations (Smalltalk does not have syntax for most controls structures; instead they are implemented as messages)
- how to use the browser (find class, browser instance methods and class methods, view hierarchy, view inheritance for methods, etc)
Downloads
Homework1ProjectUpdated.pr
jalvare1> The link to the UIUC Smalltalk site on the document should be updated. It mentions http://st.cs.uiuc.edu/ when the current one appears to be http://st-www.cs.uiuc.edu/.
Link to this Page
- Machine Problems last edited on 14 May 2008 at 4:25:53 pm by c-98-212-224-168.hsd1.il.comcast.net
|