Is it possible to extend an individual object in Smalltalk
I'm doing research in Smalltalk reflection, and I was wondering if it was possible to extend an individual object like that would be possible for instance in Ruby. With this I mean a selector that only particular objects respond to. Here is some Ruby code that states what I mean. For clarification: in Ruby this open a virtual class for this object, and extends it with a new definition. The vital part here is that nothing changes to the class definition! o = Object.new o.instance_eval {def foo;puts "foo";end} o.foo #=> "foo" #however this will fail: m = Object.new m.foo #=> NoMethod error More