Hacker News new | ask | show | jobs
by xilun0 5413 days ago
If you do everything in the constructor and the destructor, and in the meantime store a generic instance (or maybe a list of generic instances) somewhere.

This can be a quite rare situation, though. But not impossible.