From: Dave Thomas Date: 2001-05-08T00:35:38+09:00 Subject: [ruby-talk:14783] Re: AW: Re: SimpleDelegator assymetry Robert Feldt writes: > > I.e. methods which are no more to be delegated? > > > > I have a somewhat "not so fast solution" ;-): > > > Yes, this is another nice thing, ie. dynamic delegation so that methods > added to the delegatee at run-time is available to the delegating > object. Maybe we should add all these different schemes in different > classes? (StaticInitDelegator, StaticDelegator and DynamicDelegator?) In fact, if we're going to do this, it would be a good idea to abstract out the behavior that tracks method addition and removal, mixing in, subclassing and so on. This kind of thing pops up in many different dynamic situations, and it would be nice to have a module that implements the behavior, rather than have every library that needs it implement it from scratch. Dave