From: bjorn AT algonet DOT se (Bjorn Fahller) Newsgroups: gnu.gcc.help,comp.os.msdos.djgpp,comp.os.os2.programmer.misc Subject: Re: C++ problem -- Over 30 people were unable to help me, can you?! Date: 18 Jan 1998 21:48:12 GMT Organization: Algonet/Tninet Lines: 19 Message-ID: References: <34c233a4 DOT 0 AT news1 DOT ibm DOT net> NNTP-Posting-Host: du184-0.ppp.algonet.se Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Sun, 18 Jan 1998 16:53:56, idanan AT ibm DOT net wrote: > C++ has a way of doing this. The proper syntax is: > > File::File(const char* name, int mode, int prot) try : > fstream(name, mode, prot) > { > > } > catch () > { > > } This is true, but how many compilers support function try blocks? I don't know of any. _ /Bjorn.