Re: how to make a deletion slot?



Paul Davis wrote:
> On Mon, 2006-10-30 at 01:00 +0200, Paul Pogonyshev wrote:
> > Hi,
> > 
> > Is there a way to make a slot that calls `delete arg' on its argument
> > pointer (of a known type.)  It is trivial to write a one-line function
> > for it, but maybe there is a standard one ready for this?
> 
> its not as trivial as you might think, because the lifetime of the
> object during event processing can be important.

Not in my case, anyway.  At least simply wrapping `delete this' in a
function worked.  Thank you anyway, I'll keep that in mind if I run
into a problem with this.

Paul



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]