Skip to content

Lowering: a hook the program defines for a library extern waits until… - #10

Merged
darmie merged 1 commit into
mainfrom
perf/python-arith-hook-reach
Sep 27, 2026
Merged

darmie merged 1 commit into
mainfrom
perf/python-arith-hook-reach

Conversation

@darmie

@darmie darmie commented Sep 27, 2026

Copy link
Copy Markdown
Member

… something calls it

Only declarations with a body count as a name declared twice, so a program's body for a library's extern hook is deferred like any other own function and the extern stands for it until a built body calls it. A program whose operator dunders are used only on typed instances no longer builds the dynamic arithmetic the arithmetic hook reaches.

git-bug: ff74c2356bb2a69e5033ddc17a5e4a7662cc2efba6f9e633aea1cbd96301bdcf

… something calls it

Only declarations with a body count as a name declared twice, so a program's body for a library's extern hook is deferred like any other own function and the extern stands for it until a built body calls it. A program whose operator dunders are used only on typed instances no longer builds the dynamic arithmetic the arithmetic hook reaches.

git-bug: ff74c2356bb2a69e5033ddc17a5e4a7662cc2efba6f9e633aea1cbd96301bdcf
@darmie
darmie merged commit ff51664 into main Sep 27, 2026
11 checks passed
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