this is stupid
Or just use D. I don''t know if it supports what you''re trying to do (somehow I doubt it). The real question is why do you need a virtual Init function when you can put the contents of the derived Init into a constructor?
All D would do is make it look prettier
The true general first seeks victory, then seeks battle
- Sun Tzu
The true general first seeks victory, then seeks battle
- Sun Tzu
quote:Original post by angry C++ isn''t a language, C++ is three languages(asm, C, C++).
This belief is why you aren''t using c++ well. Clear your mind of this, and everything else will be easier.
It makes perfectly good sense for the object to be an A before and during the construction of its A-ness.
Yeah. Gee. C++ is hard. Ya''ll should just give up when things are hard.
On a serious note, I''ll agree that there are some brilliantly stupid things in C++, but this isn''t one of them.
On a serious note, I''ll agree that there are some brilliantly stupid things in C++, but this isn''t one of them.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement