3 ms·
Languages with traits may not allow them to be changed at runtime, which may be a useful behavior to have in a game.
by tree_of_item 15y ago
Languages with traits may not allow them to be changed at runtime, which may be a useful behavior to have in a game.
- yvdriess 15y agoComposition 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.