🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49865

Does gcc have C++ try & catch?

#49865
From: John L. MacFarlane
Date: Thu, 16 Dec 1993 18:20
23 lines
1236 bytes
Hello all,

I am trying to use C++ features try/catch without success on gcc 2.5.6.

Is this implimented?

Here is a snippet of my test program:
#include <iostream.h>
int main()
{
        try
        {
                cout << "In Try Block\n";
                throw 1;
                cout << "Finished With Try Block\n";
                return 0;
        }
        catch(...)
        {
                cout << "In Catch Block\n";
                return 0;
        }
}
Technical Details
Message-ID: <John.MacFarlane.155.00125926@Software.Com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!olivea!pagesat!news.cerf.net!software.com!venice.software.com!John.MacFarlane

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bd2a18725f211c7d,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-17 16:12:11 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!olivea!pagesat!news.cerf.net!software.com!venice.software.com!John.MacFarlane
From: John.MacFarlane@Software.Com (John L. MacFarlane)
Newsgroups: gnu.gcc.help
Subject: Does gcc have C++ try & catch?
Date: Thu, 16 Dec 1993 18:20:51
Organization: Software.Com
Lines: 24
Distribution: world
Message-ID: <John.MacFarlane.155.00125926@Software.Com>
NNTP-Posting-Host: venice.software.com
Summary: Question
Keywords: gcc try catch
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]