Repository navigation
[2026-11 LWG Motion 1] P4453R1, plus a fix [sic] - #9416
dietmarkuehl wants to merge 3 commits into
Conversation
|
Can we have the change that's not in the paper in a separate commit please? It's fine to make further editorial changes, but it'd be good if we have a commit that reflects the paper as moved (except for trivial fixes like typos, which are fine to do in the main commit). |
|
Never mind, I'll handle that. |
Fixes IE 133 (C++26 DIS)
…r" object. This synopsis change was accidentally omitted from P4453R1 (but obviously this object is meant to exist, and referred to in the rest of the wording).
| \item Let \tcode{\placeholder{ev}} be the object | ||
| \tcode{get_env(\exposid{rcvr})}. \tcode{\exposid{SCHED}(\placeholder{prom})} |
There was a problem hiding this comment.
The full stop between two code expressions makes it look like a single expression, get_env(rcvr).SCHED(prom). Would it be better to move "Let ev be the object get_env(rcvr)." To the start of the effects, where we already have "Let prom be ..."?
| \item if | ||
| \tcode{same_as<start_scheduler_type,\\ | ||
| remove_cvref_t<decltype(get_start_scheduler(\placeholder{ev}))>>} | ||
| is \tcode{true},\\ | ||
| \tcode{get_start_scheduler(\placeholder{ev})}; |
There was a problem hiding this comment.
Copilot should be disabled for WG21 papers, but this does seem like a problem in the wording. The text being replaced does allow for the expression not being well-formed.
Also, the new (4.3.1) is phrased "if condition, result" but (4.3.2) - (4.3.4) are phrased "result, if condition".
I think it would work to phrase (4.3.1) as:
get_start_scheduler(ev)if this expression is valid and has type isstart_scheduler_type.
We seem to be inconsistent about "if this expression" vs "if that expression", and between "is valid" and "is well-formed".
| \item otherwise, \tcode{start_scheduler_type(get_scheduler_allocator(\placeholder{ev}))} | ||
| if this expression is valid; | ||
| \item otherwise, \tcode{start_scheduler_type()} if this expression is valid; | ||
| \item otherwise the program is ill-formed. |
There was a problem hiding this comment.
should there be a comma after "otherwise" here?
(if my scripts aren't buggy, 6 out of 180 such bulleted lists in the entire draft don't have the comma on the last "otherwise")
Fixes #9400.
Also fixes https://github.com/cplusplus/nbballot/issues/1014.
The changes are in the middle of the paper, without a "Wording" headline: they are at the end of Section 2, right before Section 3.
Note: This edit adds the definition of
get_scheduler_allocatorwhich is missing: the paper has the definition ofget_scheduler_allocator_tand referencesget_scheduler_allocatorbut it doesn't actually define it:I hope this addition can be considered editorial. If I should rather leave it out and raise an LWG issue, please let me know.