Repository navigation
In-place resources: several initializers, a literal success status, and a facts-file form (#3173, D226, spec v7.77) - #3518
Merged
Merged
Conversation
added 7 commits
November 21, 2026 12:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eric's ruling of 2026-11-21 on #3173, items C, D and E, with the blessed spec words.
oktakes an integer literal as well as a named constant, oninit … , ok Kand on a by-value resource.init F(self)[, ok K]for an in-place resource, so a library whose pairs the draft cannot prove can still state them.init; naming the same function twice is refused (this supersedes A second init clause on a resource is an error naming both; it was accepted and the first dropped #3502's refusal of any second init).Spec v7.77: the grammar (
status_value,init … , ok), §16.2b.3 on what a draft's proof is, including that a draft states an init'sok Konly when the init's body proves K is its success return, and §16.2b.15 on facts. Status notes say a draft's proof is not implemented and a stated pair is not yet checked against the proof. Decision recorded as D226.Tests:
behav_c_facade_ok_integer_literal,behav_c_facade_several_initializers,err_c_facade_same_initializer_twice,conan_facade_inplace_resource_facts_test.Battery green;
:release-checksgreen. #3173 stays open: thefixedforms for zlib, the registry facts, the survey rerun and the draft proofs A and B follow.