
21 Oct
2009
21 Oct
'09
6:54 p.m.
2009/10/21 Ireneusz Szpilewski <irek@szpilewski.opole.pl>:
Scott McMurray wrote:
How do you implement a heart transplant when you inherit from your heart, rather than contain it?
Before transplant:
class Me: private MyHeart { };
After transplant:
class Me: private SombodyElsesHeart { };
And how exactly are you supposed to make that change at runtime? (That's not a heart transplant; That's growing a clone body around the new heart.)