Skip to content

In-place resources: several initializers, a literal success status, and a facts-file form (#3173, D226, spec v7.77) - #3518

Merged
ehartford merged 7 commits into
mainfrom
inplace-cde
Nov 21, 2026
Merged

ehartford merged 7 commits into
mainfrom
inplace-cde

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's ruling of 2026-11-21 on #3173, items C, D and E, with the blessed spec words.

  • C: a literal success status. ok takes an integer literal as well as a named constant, on init … , ok K and on a by-value resource.
  • D: a facts-file form. A facts file states init F(self)[, ok K] for an in-place resource, so a library whose pairs the draft cannot prove can still state them.
  • E: several initializers. A resource may state more than one 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's ok K only 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-checks green. #3173 stays open: the fixed forms for zlib, the registry facts, the survey rerun and the draft proofs A and B follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant