o even the most basic questionsabout
> Squeak.
> Subject: Re: [Newbies] variableWordSubclass:
>
> Joaquin,
>
> > I wish to create a subclass of FloatArray for a dynamic system
> simulation. When creating the class with #subclass: the
> > method is automatically
Sorry to repost, my webmail interface was using html instead of plain text...
To understand a little bit more:
When you execute (FloatArray new: 2), you send message #new: to class
FloatArray with argument 2.
Message #new: is looked up in the receiver class methodDictionary, that is
(FloatArr
To understand a little bit more:
When you execute (FloatArray new: 2), you send message #new: to class FloatArray with argument 2.
message #new: is looked up in the receiver class methodDictionary, that is (FloatArray class) here.
Note that FloatArray class is a an instance of Metaclass, which is
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
>
> FloatArray variableWordSubclass: #DynamicVariable
>
> That is fine. But when I wish to
Hi John,
>> 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.
cre> i'm a real rookie here, but what does it mean - "new:" isn't on the
cre> class side anywhere? where is "new:" then?
if you can
> where is "new:" then?
The method whose selector is #new: is implemented on the instance side
of Behavior and on the class side of some other classes (String, Set,
Array...).
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lis
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.
#new: is implemented in Behavior which is the superclass of Class.
FloatArray new: 5
is correct for example
__
hi-
> 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.
i'm a real rookie here, but what does it mean - "new:" isn't on the
class side anywhere? where is "new:" then?
john cummings
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 rig
Joaquin Sitte a écrit :
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
> [...]
In my opinion,
Hi,
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:
11 matches
Mail list logo