| ||
Student Originated Software 1997-1998
| ||
A Software Engineering Course at The Evergreen State College | ||
|
Student Originated SoftwareObject-Oriented Programming (Smalltalk)Smalltalk Notes for Lecture 3a| p q | p:= Point x:2 y:3. Transcript cr; show: p printString. q:= Point r:900 theta:30. q inspect. p:= 3@4. (3@4.5) + (12.7@-3) 15.7@1.5
"8.2" (12@1) /2 6@(1/2)
^scale quotientFromPoint: self quotientFromPoint: aPoint ^self class x: (aPoint x/x) y: (aPoint y/y) ----- "8.3"
43@17 dist:45@103 86.0233 (4@3)r. 5.0
1@1 dist:2@2 1.41421
2@2 manhattan: 1@1
"8.5" Smalltalk Integer "Chapter 9 - other kinds of Browsers" 3@4 browse.
| ans | [ans := Float pi/2] value | addBlock |
|