Article View: comp.std.c++
Article #2675Re: function try block
From: David Vandevoorde
Date: Wed, 22 Nov 1995 03:23
Date: Wed, 22 Nov 1995 03:23
24 lines
1333 bytes
1333 bytes
>>>>> "AB" == Avner Ben <avnerben@netvision.net.il> writes:
In article <48tdsi$5o4@engnews1.eng.sun.com> Avner Ben <avnerben@netvision.net.il> writes:
[...]
AB> Does
AB> function-try-block:
AB> try ctor-initializer-opt function-body handler-seq
AB> mean the following crazy piece of code?
[Code adapted below]
I think that first brace is extraneous:
FileOfRecords::
FileOfRecords(const char* name, int size)
try: m_file(name), m_buffer(size) {
// do stuff
} catch(...) {
// handle error
}
Daveed
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<VANDEVOD.95Nov21203915@juicer.cs.rpi.edu>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<48tdsi$5o4@engnews1.eng.sun.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: vandevod@cs.rpi.edu (David Vandevoorde) Newsgroups: comp.std.c++ Subject: Re: function try block Date: 22 Nov 1995 03:23:16 GMT Organization: RPI Computer Science Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <VANDEVOD.95Nov21203915@juicer.cs.rpi.edu> References: <48tdsi$5o4@engnews1.eng.sun.com> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: juicer.cs.rpi.edu In-Reply-To: Avner Ben's message of 21 Nov 1995 20:47:14 GMT Content-Length: 513 Originator: clamage@taumet