Repository navigation
A callback field's stores are judged one by one; any store that is not null, a whole-record copy or the setter's named callback parameter leaves the field undecided (D213 amended) - #3550
Merged
Conversation
… copy and the parameter the setter's callback clause names fit; any other leaves the field undecided (D213 amended). The battery refuses to start on a seed the lock does not pin
This was referenced Nov 23, 2026
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.
D213, amended by Eric 2026-11-22: say which stores fit the role, not only which one contradicts it.
The stores that fit
field F of R is callbackare a null store, a whole-record copy, and the parameter that the storing function's own callback clause names. A store of one of the package's own functions still contradicts the role. Any other store (a value the package loaded, computed or was returned, or a parameter the clause does not name) leaves the field undecided: the role is not applied, the operations that call through the field stay raw, and the contract says which store:Before, any store that named no function counted as the program's value once the function carried some callback clause.
How. The scanner records where each stored value came from (
null,param:<name>,other); the per-function evidence carriesfieldstoreparam:<Record.field>:<j>andfieldstoreother:<Record.field>;ci_facade_projectjudges them against the function's callback clause.Known and pinned by the test. libcurl's shape, a public variadic setter that hands its arguments to an internal function which stores the next one, stores no parameter of the storing function, so its field is undecided. Which variadic argument such a store reads needs a rule; #3124 stays open.
The D213 spec words are not in this change; they await Eric's blessing. The decision file records the amendment.
Also: the battery refuses to start when
src/mainis not the seedseed.lockpins. A worktree with the previous seed ran a whole survey before its seed-driver lane said so.Test:
conan_facade_callback_field_test(three new cases: a loaded value, a parameter the clause does not name, the variadic shape).Battery green;
:release-checksgreen.