[wx-dev] Curious about design choices

Botond Ballo botond_ballo at yahoo.ca
Tue Aug 7 18:33:19 PDT 2007


NR>   2) What is the rationale for having to use Destroy() rather than 
NR>  "delete" to destroy an object created using "new"?
  
 
  VZ> This has already been answered I believe.
  
 
  Agreed: Destroy() waits for events sent to the object to be processed before deleting the object. I guess my real question is, why can't the code that waits for events be placed in the destructor? (I know Destroy() rather than delete is a very small change, but it does make encapsulating wx objects in standard shared pointer classes like auto_ptr difficult.)
   
  - Nathan

       
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20070807/f7d395c8/attachment.htm


More information about the wx-dev mailing list