[Newbies] Delegates, aliases, or ? How to deal with (avoiding) renaming

Charles D Hixson charleshixsn at earthlink.net
Wed May 10 19:51:47 UTC 2006

I'm trying to translate some C++ code into Sqeak (it's old, and doesn't
use the stl).  One of the first things it does is define a class called
Vector.  This appears to be the same as the FloatArray class...but not
really the same.

What I want to do is ... well, it OUGHT to be subclassing of FloatArray,
but that class uses a bunch of primitive operations, so I can't really
tell all that it's doing.   Still...
The main thing I'm doing here is the same thing that's being done in
FloatArray, but with different names for the operations.  So I usually
want to use the new names as labels for the old operation.

Is there a better way to do this than just subclass FloatArray and have
each new method return the old method's calculation? 
When I get to Matrix, not only does it have the same name as an existing
class (of which it apparently *ought* to be a subclass), but it
implements methods like +, where Matrix says add:  doNotImplement.


More information about the Beginners mailing list