From: Josh <axl...@gm...> - 2009-10-22 22:20:50
|
I don't like this. We did this deletion thing in HG1 and it was a disaster. There is an Init somewhere, either in MercuryNode or MercuryAsset. It is currently unused with the intention of reusing asset/nodes. I do not want a delete self. Having that in HG1 caused all kinds of circular deletions, it was very messy. Also, why are you storing char * of the type? We are using RTTI so we don't have to do this, and it increases the size a fairly large amount. Charles Lohr wrote: > It turns out that C++ does not permit virtual function calls in > Constructors or Destructors. > > I've added code to make a virtual call intentionally after the creation > of objects that so I can set a new variable "const char * Type" that way > I can get the type in the destructor. > > I am curious if we were planning on adding Init() and DeleteSelf() or > something along those lines? > > Charles > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Hgengine-devs mailing list > Hge...@li... > https://lists.sourceforge.net/lists/listinfo/hgengine-devs > |