Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!cs.umn.edu!kksys!edgar!mmug!UUCP From: Jim.Spencer@p510.f22.n282.z1.mn.org (Jim Spencer) Newsgroups: comp.sys.mac.programmer Subject: Re: MacApp & C++ destructors Message-ID: <671846404.0@mmug.mn.org> Date: 16 Apr 91 03:26:16 GMT Sender: UUCP@p0.f1.n1612.z26.mn.org Lines: 14 Anders Wallgren writes in a message to All AW> You probably shouldn't use constructors and destructor with classes AW> descended from TObject unless you know that they will always AW> be created with new. I know for a fact that objects instantiated AW> by name (ie., from a 'view' resource) then the constructor will AW> NOT be called, since Object Pascal knows nothing about C++ constructors. AW> I wouldn't be surprised if there was a similar problem with destructors AW> that means you just can't use this C++ feature (don't despair AW> - MacApp 3.0 is being written in C++). As I understand it (and there will certainly be hell to pay if this is not true), the rewrite of MacApp in C++ will NOT use any features of C++ that Object Pascal doesn't have, e.g. constructors and destructors. To do so would be to abandon all of the Object Pascal users who have hung in with MacApp through thick and thin over the last 5 years or so.