delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/20/16:46:09

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: <DlpnOhDvP3gv-pn2-NWI5QxPZ2d5X@du184-0.ppp.algonet.se>
References: <bWLoegW7sFse-pn2-d679pGp6mnys AT portD23 DOT Generation <DlpnOhDvP3gv-pn2-zQX4fq1HhHLx AT du36-2 DOT ppp DOT algonet DOT se> <34c233a4 DOT 0 AT news1 DOT ibm DOT net>
NNTP-Posting-Host: du184-0.ppp.algonet.se
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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)
>  {
>    <body goes here>
>  }
>  catch (<exception class goes here>)
>  {
>    <exception handling code here>
>  }

This is true, but how many compilers support function try blocks? I 
don't know of any.
   _
/Bjorn.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019