Subclassing/coercion

Ian Bicking bickiia at earlham.edu
Tue Sep 22 02:52:00 UTC 1998


I want to be able to create a Form that can pretend to be an
IndexedCollection from time to time (to do FFT directly on the Form
without intermediate conversions).  Now, it would be nice to be able
to do this by subclassing Form and adding a few new messages and
instance variables.  But how would I implement newFromForm: and
asForm?

The more obvious way to do this would just be to have an object that
has a Form as an instance variable, but I feel like it should be
possible to do it by subclassing Form -- I just have no idea how I'd
go about doing it that way.

<------------------------------------------------------------------->
< Ian Bicking                 |  bickiia at earlham.edu                >
< drawer #419 Earlham College |  http://www.cs.earlham.edu/~bickiia >
< Richmond, IN 47374          |  (765) 973-2824                     >
<------------------------------------------------------------------->





More information about the Squeak-dev mailing list