[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KTMainWindow problems
From:       Rik Hemsley <rik () kde ! org>
Date:       2000-02-09 14:26:51
[Download RAW message or body]

#if Ingo Ralf Blum
> > > Hmm, isn't it possible to override the new operator instead? I mean, C++
> > > has a name for create - this isn't Delphi :)
> > 
> > How would that stop you creating the object on the stack ?
> 
> Hello,
> 
> you can create a static list and every new (of KTMainWindow) inserts some data about
> the allocated memory into the list. So you can check in the constructor of KTMainWindow
> if this (the this pointer) is inside the allocated memory objects.

That's very cool :)

Cheers,
Rik

-- 
285. Find beauty in the breakdown.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic