cool thanks lukas
exercise 18 also ays "Override #description on the instance-side, call super
and
compose it with the CustomDescription." what does this mean how do i compose
it
Lukas Renggli-2 wrote:
i get the follwoing warning from system browser
"initialize is used
in the
existing class system, overriding can cause serious problem is this
really
what you want to do ?"
I don't know why Squeak is complaining here. You can safely ignore
this warning.
am i doing something wrong, can some one help me
?
No, everything correct.
im not sure what the difference between class
variable and class-
instance
variable
From the Smalltalk FAQ [1]: Class instance variables are similar to
class variables, except that they are created for eachsubclass of the
defining class. When a class declares a class instance variable, a
new variable is created for each subclass of that class. Each
subclass then has its own instance of the variable and retains its
own value for the variable, but each subclass has a variable with the
same name. Only class methods of a class and its subclasses can refer
to class instance variables; instance methods cannot.
Cheers,
Lukas
[1]
http://www.faqs.org/faqs/smalltalk-faq/
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki