Taka Kojima skriver: > > The biggest shift is from Classical Inheritance to Prototypical > Inheritance, but the key thing to note is that there is still inheritance. > > Prototypical inheritance is definitely more powerful than Classical > Inheritance when used right. >
Yet it is considered insane by most people to change the type of an object at runtime. Any such trickery is best delegated to the Strategy design pattern instead. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

