Order of destruction of local variables

monarch_dodra monarchdodra at gmail.com
Fri Mar 28 15:22:40 PDT 2014


On Friday, 28 March 2014 at 19:03:22 UTC, Marc Schütz wrote:
> That is, destruction happens in reverse lexical order of 
> declaration, and arrays are destroyed from back to front.
>
> Is this behaviour guaranteed?

Yes. It's guaranteed by spec.


More information about the Digitalmars-d-learn mailing list