Whither SmallScript? (was Re: Integer micro-benchmarks)

James A. Robertson jarober at mail.com
Wed May 2 00:10:45 EDT 2001


Greg Ewing wrote:
> 
> Martin von Loewis wrote:
> >
> > andy at toolshed.com (Andrew Hunt) writes:
> >
> > > Can you continue to dynamically add methods to classes at runtime?
> >
> > Yes, you can.
> 
> You can also change the class of an object and rearrange
> the inheritance hierarchy at runtime, just in case you
> were wondering. And add or remove instance variables
> dynamically, too (I don't think that one is so easy in
> Smalltalk).

Sure it is.  

MyClass addInstVarName: 'foo'

MyClass removeInstVarName: 'foo'



> 
> --
> Greg Ewing, Computer Science Dept, University of Canterbury,
> Christchurch, New Zealand
> To get my email address, please visit my web page:
> http://www.cosc.canterbury.ac.nz/~greg

-- 
James A. Robertson
Product Manager (Smalltalk), Cincom
jarober at mail.com
<Talk Small and Carry a Big Class Library>



More information about the Python-list mailing list