j.sitte at qut.edu.au
Mon Jun 26 12:27:53 UTC 2006
Please can someone explain the behaviour described below?
I wish to create a subclass of FloatArray for a dynamic system simulation.
When creating the class with #subclass: the method is automatically changed
to #variableWordSubclass: as follows
FloatArray variableWordSubclass: #DynamicVariable
That is fine. But when I wish to create an instance
dv2 _ DynamicVariable new: 2
I get an error telling me that #new: is not understood. However #new: is
understood by the superclass #FloatArray. Why?
And, by the way, the method #variableWordSubclass cannot be found with
Method Finder. Why?
Many thanks in advance.
Dr. Joaquin Sitte, Associate Professor.
School of Software Engineering and Data Communication Faculty of Information
Queensland University of Technology
GPO Box 2434, Brisbane, Q 4001 Australia
Phone +61 7 3864 2755
Fax +61 7 3864 1801
e-mail: j.sitte at qut.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners