Wednesday, May 04, 2005

Implementation challenges

* Tried to correct the initialization bug found yesterday. The limits of my current design and bad knowledge of C++ are becoming more evident each passing day.

* In particular, templates don't work very well with polymorphism. I think that in fact templates should be used much more rarely, in containers for example. If you know in advance which type you are gonna use for an object, you don't need tempaltes. I now think templates should rather be added later than sooner

* Learnt than a copy via a pointer that is pointing to a base class, is not possible, you have to write your own virtual Copy or Clone function

-> finish the implementation of the workarounds for the bugs discovered

No comments: