TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BENJAMIN L MCGEE
from: MATHIEU BOUCHARD
date: 1997-08-16 02:58:00
subject: replies here -[]

 BLM> How would you define "ascribing to much responsibility to the 
 BLM> constructor?"  Is this to much... 
 BLM> manifest::manifest(){ 
 BLM>      filename = new char[FILENAME_MAX]; 
 BLM>      while (!select(filename, FILENAME_MAX - 1)); 
 BLM>      mstreamp = new ifstream(filename); 
 BLM> } 
this is okay. i often write bigger constructors. (i know the language
well enough to know when copies of objects are created, and i make sure
references are used everywhere, and make sure no temporaries are
created.)
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)

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™.