Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion etiology of exceptions
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Keighley  
View profile  
 More options Oct 11 2012, 8:35 am
Newsgroups: comp.programming
From: Nick Keighley <nick_keighley_nos...@hotmail.com>
Date: Thu, 11 Oct 2012 05:35:23 -0700 (PDT)
Local: Thurs, Oct 11 2012 8:35 am
Subject: Re: etiology of exceptions
On Oct 10, 6:24 pm, "LudovicoVan" <ju...@diegidio.name> wrote:

> "Nick Keighley" <nick_keighley_nos...@hotmail.com> wrote in message

> news:02c3ed18-a81a-4ae0-b03d-666bc239d862@k6g2000vbr.googlegroups.com...> On Oct 8, 7:13 am, jussi.san...@ard.fi wrote:
> >> tiistai, 25. syyskuuta 2012 17.29.21 UTC+3 bob kirjoitti:

> <snip>

> >> -exception are no program flow cotrol structures

> > probably

> But they do alter/contribute to the program flow (I mean, even when used
> properly).  To the point that we do model that flow, say, in a unit
> functional diagram.

> >> -exception do not add to program correctness, but to robustness
> >> (operation out of specifications)

> > the exceptions a function may throw could be thought of as part of its
> > specification (though C++ has problems with this)

> If it is not in the spec, it is not an exception in the technical sense.
> This might be clearer if we think, for instance, of the case of accessing an
> external API.

the difficulty is that exception specifications are broken in C++

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3051.html
(that's just the first hit I got looking for "C++ exception problem")

If you are specifying an API then the exceptions that may thrown are
usually documented (eg. with comments) but not by using exception
specifications


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.