Re:Game Development Essentials #1 - Don’t use inheritance fo...
by tree_of_item on Tuesday February 07, 2012 @01:46AM
(#3560767)
Languages with traits may not allow them to be changed at runtime, which may be a useful behavior to have in a game.
[ Parent
| on HN ]
Re:Game Development Essentials #1 - Don’t use inheritance fo...
by yvdriess on Tuesday February 07, 2012 @07:04AM
(#3561423)
Composition may be done at runtime, but indeed changing the behavior of an existing object at runtime is not something trait systems provide. Cloning into a new object with different traits is perhaps an option.