On Wed, Jun 22, 2005 at 11:36:10PM +0900, Ara.T.Howard wrote: > imagining something like > > class C > has 'a', 'default' => 42, > 'pre' => proc{|this| puts "pre a : #{ this.a }"}, > 'post' => proc{|this| puts "post a : #{ this.a }"}, > end > > obj = C::new > obj.a('forty-two') > Wow, this aspect-oriented flavor of idea is even *better* than what I was thinking of! > or were you thinking more like > > class C > some_observer = SomeObserver::new > > has 'a', 'default' => 42, > 'observer' => some_observer > end > > and observer.notify(self, value) would be called or something? > yes, that's what I was thinking, but that AO type idea is even kewler Ralph "PJPizza" Siegler