TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTIAN S. PEDERSEN
from: CLIFF RHODES
date: 1997-07-09 11:45:00
subject: Deleting a Class.

--> Christian S. wrote to All  <--
CS>If I "delete" a Class, allocated with "new", will the
CS>Class' destructor be called ?
Yep, that's why new/delete is preferable to malloc()/free() for C++. 
BTW, make sure if you allocate with new [] you free with delete [].
Cliff Rhodes
cliff.rhodes@juge.com
crhodes@flash.net
X CMPQwk 1.42 1692 X"Knowledge and history are the enemies of religion." - 
Napoleon
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)

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