Re: Throwing Exceptions



In article <1-ydnTOLaec4ePffRVn-jg@xxxxxxxxxxx>,
Peter Ammon <gershwin@xxxxxxxxxxxxxxx> wrote:
>Gregory L. Hansen wrote:
>> Do people often use exceptions by choice in C++?
>
>No. Here's lots of reasons why.

Okay, so it's not just me.

Here's another question. *Should* people often use exceptions?

I'm thinking analogously to STL. Someone on this group (I forget who and
I don't really want to quit this post and track him down) had said that
STL encourages some good coding practices, and that STL users can tell
non-STL users by the way they code even outside of C++.

Are exceptions good for me, even if I don't want to admit it?
--
"When the fool walks through the street, in his lack of understanding he
calls everything foolish." -- Ecclesiastes 10:3, New American Bible
.



Relevant Pages

  • Re: Does Bill Gates know about the DDK regarding C++?
    ... I use STL too, with allocators ... STL is a nightmare in terms of memory fragmentation. ... C++ suggests to use exceptions to recover from such situations. ... system-level development. ...
    (microsoft.public.development.device.drivers)
  • Re: _ATL_NO_EXCEPTIONS conflict
    ... Although you should not use exceptions in your own code, they are used extensively in the ATL and some STLs, including the one that comes with Visual C++. ... You should investigate whether you can also disable exceptions in your STL, but if not, it is OK to turn on exceptions in the compiler. ... HRESULT Method ...
    (microsoft.public.vc.mfc)
  • Re: unexpected exception handler
    ... STL streams don't normally report I/O errors as exceptions, ... You can enable exceptions by changing the exception mask - ...
    (microsoft.public.vc.language)
  • Re: Sheet Music copying - is it EVER allowable?
    ... Educational purposes is one of the Fair Use exceptions. ... How much is okay (as ... with all of copyright law) is decided by cases, not by statute. ...
    (rec.music.classical.guitar)
  • Re: FTP Error 125
    ... exceptions instead of status codes! ... MSs ftp site was offline yeterday ... Getting a status code indicates that the call went through okay, the server did ...
    (microsoft.public.dotnet.languages.vb)