logo       

adding methods to a class at runtime: msg#00111

lang.smalltalk.squeak.beginners

Subject: adding methods to a class at runtime

Is it possible to write code that adds methods to a class at runtime. In particular I'm thinking about something like attr_accessor in Ruby which adds get and set methods for instance variables so you don't have to write them.

Thanks to everybody who has answered my questions so far!

---
Mark Volkmann


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise