Skip to content

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
ehartford merged 1 commit into
mainfrom
callback-field-stores
Nov 23, 2026

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

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 callback are 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:

//   field trace of handle: undecided: `handle_restore` stores a value that is not one of its parameters into it

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 carries fieldstoreparam:<Record.field>:<j> and fieldstoreother:<Record.field>; ci_facade_project judges 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/main is not the seed seed.lock pins. 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-checks green.

… 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
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