BM> How would you define "ascribing to much responsibility to the
BM> constructor?"
I was taught that the constructor was a marvelous place to INITIALIZE
variables, not more.
BM> manifest::manifest(){
BM> filename = new char[FILENAME_MAX];
BM> while (!select(filename, FILENAME_MAX - 1));
BM> mstreamp = new ifstream(filename);
BM> }
That's more than variable initialization. Since you can't call a
constructor directly in your code, you're limiting youself as to
code-reusability.
* KWQ/2 1.2i *
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)
|