From 1598082789783779455
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fe4ee1d628d61c18
X-Google-Attributes: gidf78e5,public
From: Gilbert Chang <gchang@ccnet.com>
Subject: a exception re-throw question
Date: 1998/04/27
Message-ID: <3543CD85.F453439@ccnet.com>#1/1
X-Deja-AN: 348509495
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
Mime-Version: 1.0
Originator: clamage@taumet
X-NNTP-Posting-Host: h207-21-136-198.ncal.verio.net
Content-Type: text/plain; charset=us-ascii
Organization: Verio Northern California's Usenet News Service
Newsgroups: comp.std.c++


Do the following two code segments have the same effects?

code segment 1:
try
{
....
}
catch(SomeException & e)
{
    throw e.foo();
}

code segment 2:

try
{
...
}
catch(SomeException & e)
{
    e.foo();
    throw;
}

Thanks

Gilbert Chang



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




