Re: Interview: Dale Fuller and Blake Stone on Borland directions

From: Rudy Velthuis (TeamB) (rvelthuis_at_gmx.de)
Date: 11/17/03


Date: 17 Nov 2003 03:59:32 -0700

Will DeWitt Jr. wrote:

> Rudy Velthuis (TeamB) wrote:
>
> > When and where should it be called?
>
> At the end of the expression

And I suppose the compiler should know that the function returns a new
object, instead of just returning a reference to an existing one? It
would require that the compiler knows about the contents of the method
then.
 
> A class in a class, you mean in the case where a member of the class is
> another class? Wouldn't this be handled by the initial destructor
> freeing any members it needs to when it's destroyed?

No. You must explicitly call all destructors of contained members. This
is Delphi after all.

-- 
Rudy Velthuis (TeamB)
"The nourishment is palatable" - Emily Dickinson, dying words


Relevant Pages

  • Re: parser stack overflow, program too complex eroor C1026
    ... Or it's a compiler limitation or it's a compiler bug, ... > of 124 members any one ref class can be responsible for destroying ... > This is probably why pointers don't cause a problem: the responsibility ... I never ever create a class without a destructor. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Exception unwinding base destructor called - why?
    ... > as a kind of compiler independent, ... > unwinding mechanism is calling the destructor for the base class. ... Before the body of the Derived constructor can be invoked, ... as well as all members of Dervied too...). ...
    (comp.lang.cpp)
  • Re: parser stack overflow, program too complex eroor C1026
    ... But that doesn't mean there is no bug in the compiler. ... I never ever create a class without a destructor. ... >>remove the destructor and the problem goes away (tried with 240 members). ... >>> even of mixed types, at the same time in one class. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: struct alignment
    ... necessary so that all the members can be accesssed correctly. ... Does any compiler let you do this? ... Permit reordering of struct members, ... but that surely is rare. ...
    (comp.lang.c)
  • Re: File conversion
    ... the appropriate changes to both record layouts, ... You would then have to do a detailed comparison of what fields the compiler found to correspond. ... Once you have done that, and proven that your COPY members are defined correctly, you're home free! ... future changes to the COPY members could blow you right out of the water.... ...
    (comp.lang.cobol)