On 27.01.2011 17:38, Igor Stasenko wrote:
On 27 January 2011 07:28, HwaJong Oh<daliot.oh@gmail.com> wrote:
Yes, you are right. I was wrong. There is nothing super send. I had error editing my trait codes around "super", so i thought trait can super send. http://screencast.com/t/yyjLLm0S
MoveMethod:
FriendOfPointArray>> at: index
^(pointArray superAt: index * 2 - 1) @ (pointArray superAt: index * 2)
to
PointArrayTrait>> at: index
^(super at: index * 2 - 1) @ (super at: index * 2)
while editing "pointArray superAt:" to "super at:", the editor made error.
Hehe.. funny mistake :) Yeah, I created an issue for it: http://code.google.com/p/pharo/issues/detail?id=3603 Btw, what is this FriendOfPointArray? The name sounds strange
It actually has a class comment :) "Removes duplication of PointArray & ShortPointArray. They do not share same superclass, therefore this class is to remove to duplicated codes by extracting class" Hence my suggestion of a trait to keep it in rather than creating a new helper instance for each at: or at:put: Cheers, Henry