TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KURT KUZBA
from: BALOG PAL
date: 1997-07-17 04:24:00
subject: Deleting a Class.

                               Hi, Kurt Kuzba!
On 12 Jul 97  15:24:28 you wrote to Christian S. Pedersen
 CS>   If I "delete" a Class, allocated with "new", will the
 CS>   Class' destructor be called ?
 KK> Yes. new calls the constructor, and delete calls the
 KK> destructor.
At least it should. :) See bug list of your compiler.  Just looked the
buglist of VC 4.0-4.2, quite much bugs related to new and delete. And they
didn't even found the bug I posted here some weaks ago.
Paul
... Be careful what you ask for - you may get it!
--- OS/2 Warp
---------------
* Origin: The FlintStones' Cave in BedRock (2:371/20)

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