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

How well does it work with class redefinition? Do your instances created with the old definition automatically update to become instances of the new definition, or do you need to recreate them?

Common Lisp goes to a lot of trouble to ensure old instances automatically become new instances - given the repl is a first class feature, the whole language is built around this concept. But with C++ I can't quite picture how it would work.



The variables and references need to be re-initialized. It would be absolutely amazing if instances updated themselves but I think only Lisps and Smalltalk are capable of what you are saying. Correct me if I am wrong.


It is not supported. You can only define each type once.




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

Search: