Skip to content

feat: named ring/field instances for ring/field structure selection#1067

Merged
strub merged 1 commit into
mainfrom
multi-instance-ring
Jul 7, 2026
Merged

feat: named ring/field instances for ring/field structure selection#1067
strub merged 1 commit into
mainfrom
multi-instance-ring

Conversation

@strub

@strub strub commented Jul 7, 2026

Copy link
Copy Markdown
Member

A carrier type can carry several ring/field structures; the tactics
silently used the first registered one with no way to disambiguate.

Give instances an optional name at declaration:

instance ring [foo] with T ...

and let the tactic target it:

ring [foo] / field [foo]

Bare ring/field are unchanged: with no name, the first matching
instance is used, so the single-structure case behaves identically.

A carrier type can carry several ring/field structures; the tactics
silently used the first registered one with no way to disambiguate.

Give instances an optional name at declaration (`instance ring [foo] with
T ...`) and let the tactic target it (`ring [foo]` / `field [foo]`).
Bare `ring`/`field` are unchanged: with no name, the first matching
instance is used, so the single-structure case behaves identically.

@bgregoir bgregoir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be pretty cool.

Comment thread src/ecParsetree.ml
@strub strub added this pull request to the merge queue Jul 7, 2026
Merged via the queue into main with commit 141ddfd Jul 7, 2026
19 checks passed
@strub strub deleted the multi-instance-ring branch July 7, 2026 14:16
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.

2 participants