Order of destruction of local variables

Ali Çehreli acehreli at yahoo.com
Fri Mar 28 14:10:39 PDT 2014


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.

Ali



More information about the Digitalmars-d-learn mailing list