-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[except.uncaught] Tidy the specification for uncaught exceptions #7276
base: main
Are you sure you want to change the base?
Conversation
c3ea389
to
3974f00
Compare
One last tweak to update the comment in xrefdelta.tex to reference the correct PR number, and to move the first paragraph on uncaught exceptions up one, so that there is a much clearer flow from creating the exception object, being uncaught, then caught, then rethrown, before talking about what happens when an exception is uncaught. I should be done pushing updates to this PR until I get reviews now :) |
source/exceptions.tex
Outdated
@@ -317,6 +317,15 @@ | |||
the selected constructor is odr-used\iref{basic.def.odr} and | |||
the destructor of \tcode{T} is potentially invoked\iref{class.dtor}. | |||
|
|||
\pnum | |||
An exception is considered uncaught |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it, this looks like a definition and presumably should be formatted and indexed as one (exception, uncaught).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Added indexing, rebased, and force-pushed.
7514cf9
to
aa18e13
Compare
source/xrefdelta.tex
Outdated
% https://github.com/cplusplus/draft/pull/7345 | ||
\movedxref{basic.stc.inherit}{basic.stc.general} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extraneous blank line.
766b0f9
to
7b4fc72
Compare
7b4fc72
to
8d2ba3d
Compare
Several concurrent fixes. First include the normative wording that 'uncaught_exceptions' returns the number of uncaught exceptions *on the current thread*. This wording is present in the core language. Then move the core wording for when an exception is uncaught directly into the text that talks about caught and uncaught exceptions. In the process, turn the reference to into a note, so that there is only one normative specification. Finally, remove [except.uncaught] as it is now empty.
8d2ba3d
to
9b8c25a
Compare
Several concurrent fixes. First include the normative wording that 'uncaught_exceptions' returns the number of uncaught exceptions on the current thread. This wording is present in the core language.
Then move the core wording for when an exception is uncaught directly into the text that talks about caught and uncaught exceptions. In the process, turn the reference to into a note, so that there is only one normative specification.
Finally, remove [except.uncaught] as it is now empty, and add the missing descriptive sentence to the intro paragraph of [except.special.general]. This happens to produce quite a pleasing page-break, but that is just luck, not design.