CS 342 Lecture -*- Outline -*- * Analysis of Smalltalk ** Major difference between Little Smalltalk and Smalltalk-80 *** class methods in LST: no class methods classes are created and then new is sent to created instance (if defines new) in ST-80: more flexible, error-prone, have to define class method (new), which calls super new, initializes and returns resulting object (by calling instance method) both have *lack of info hiding, so initialization can be performed on existing objects danger: forgetting to do some initialization ("super new" in instance method) *** instance variable name scope cannot refer to instance variables of superclasses in LST (bad anyway) *** indexed instance variables Array instead in LST (same number of concepts)