From -7699307799070277148
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,bda3b729e5d0c564
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1993-04-03 11:47:13 PST
Newsgroups: comp.std.c++
Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!ocsmd!finnbogi!obi
From: obi@finnbogi.ocs.com (Obi Thomas)
Subject: Re: Guaranteed order of destruction for auto objects?
Message-ID: <C4x5oB.7so@finnbogi.ocs.com>
Sender: obi@finnbogi (Obi Thomas)
Reply-To: obi@finnbogi.ocs.com
Organization: Online Computer Systems, Inc.
References:  <C4vJy3.5FH@finnbogi.ocs.com>
Date: Sat, 3 Apr 1993 17:52:59 GMT
Lines: 9

In article <C4vJy3.5FH@finnbogi.ocs.com>, I asked
> Does the standard guarantee the order of calling destructors for automatic
> objects?

I found the answer on page 171 (Section 5.5.1) of "The C++ Programming
Language, 2nd ed."

"Destructors for local variables are executed in reverse order of their
construction."


