From: Mike Gold Date: 2008-12-12T05:25:40+09:00 Subject: Re: why Hash corrupts 'key' object ? Dmitry Perfilyev wrote: > BTW, why delegation is more primary than standard inheritance ? Delegation carries a greater degree of decoupling and flexibility. Sometimes it's useful to replace your car engine while you're cruising down the highway. That's delegation. With inheritance, the engine is welded onto the car body. You've already tossed aside the possibility of hot-swapping. Perhaps that was an arbitrary decision. Delegation makes something new out of existing parts. Inheritance grafts stuff onto existing parts. -- Posted via http://www.ruby-forum.com/.