TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BENJAMIN L MCGEE
from: NEIL HELLER
date: 1997-08-18 19:52:00
subject: REPLIES HERE -[]

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.