delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/20/20:18:36

Message-ID: <39F0E162.F46FF4DD@alpha.delta.edu>
Date: Fri, 20 Oct 2000 20:20:50 -0400
From: "David Witbrodt" <dawitbro AT alpha DOT delta DOT edu>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: en,ja
MIME-Version: 1.0
To: DJGPP mailing list <djgpp AT delorie DOT com>
Subject: Re: Exceptions support
References: <39F08492 DOT 17178 DOT 103C4D8 AT localhost>
Reply-To: djgpp AT delorie DOT com

Thanks, Andris.

I should have thought of "const" myself.


pavenis AT lanet DOT lv wrote:
> 
> Try this:
> [...]
>         catch (const char *msg) { cout << "const char* catched: " << msg << endl; }
> [...]
> and You'll see the source of problem ...

There was a program in a book I'm reading on VC++ programming.  It
worked fine on Microshaft, but the GXX executable kept yelling
"Abort!"  I pared down the original program, trying to isolate the
problem.  I tried a lot of things, but not "const".

That will teach me to trust what I read -- as per the recent thread on
Schildt's books.  (I did like his Born To Code In C, though.)

Thanks again!

- Raw text -


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