Order of destruction of local variables
Marc Schütz" <schuetzm at gmx.net>
Marc Schütz" <schuetzm at gmx.net>
Sat Mar 29 14:26:15 PDT 2014
On Friday, 28 March 2014 at 21:10:39 UTC, Ali Çehreli wrote:
> On 03/28/2014 12:03 PM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>
> > destruction happens in reverse lexical order of declaration,
> > and arrays are destroyed from back to front.
> >
> > Is this behaviour guaranteed?
>
> It must be that way because later objects can hold references
> to earlier objects.
That's actually why I was asking :-)
Thanks to both of you!
More information about the Digitalmars-d-learn
mailing list