logo       

Re: variableWordSubclass:: msg#00121

lang.smalltalk.squeak.beginners

Subject: Re: variableWordSubclass:

Hi Joaquin,
 
>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
 
I think the the _expression_ "ArrayedCollection subclass: #DynamicVariable" is the right way you get a subclass of FloatArray.
 

>FloatArray variableWordSubclass: #DynamicVariable

 

>That is fine. But when I wish to create an instance

>dv2 _ DynamicVariable new: 2
 
So far I've seen the hierarchy of FloatArray the method "new:" isn't on the class side anywhere. This is the reason because you get an error.  
 
Hope this helps.
 
Cheers,
  Frank
_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise