Re: Use of delete or pfDelete in C++ with pf2.0?

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Thu, 04 Jan 96 11:16:00 -0800


> Suppose a new class 'A' is derived from pfObject. A destructor is defined for
> this class A. Should pfDelete be used to delete an instance of A since it is
> also a pfObject? What happens to the destructor of A then?

Yes, pfDelete should be used to delete any
instance of a class that is derived from pfObject.

If pfDelete decides the object is safe to delete,
it invokes the delete operator on A which
unleashes the usual C++ chain of destruction.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/933-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.