Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Languages with traits may not allow them to be changed at runtime, which may be a useful behavior to have in a game.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: