Skip to content

Spec: §16.1 says what §16.2 and the importer do with function-like macros (#582) - #2756

Merged
ehartford merged 1 commit into
mainfrom
fix-582-spec
Oct 27, 2026
Merged

ehartford merged 1 commit into
mainfrom
fix-582-spec

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Spec: §16.1 says what §16.2 and the importer do with function-like macros (#582)

§16.1 said function-like macros are not translated; §16.2 and the
implementation translate single-expression macros as generic functions
(verified: MAX(3, 7) prints 7) and omit the rest with a diagnostic
naming the macro and the construct (the code half landed in 5ba83a4).
The words are the proposal from the issue, blessed 2026-10-26. §16.2's
stale example (MAX as "NOT translated") becomes a token-paste omission,
matching the diagnostic. Spec-only; :spec-inventory-check green.

…cros (#582)

§16.1 said function-like macros are not translated; §16.2 and the
implementation translate single-expression macros as generic functions
(verified: MAX(3, 7) prints 7) and omit the rest with a diagnostic
naming the macro and the construct (the code half landed in 5ba83a4).
The words are the proposal from the issue, blessed 2026-10-26. §16.2's
stale example (MAX as "NOT translated") becomes a token-paste omission,
matching the diagnostic. Spec-only; :spec-inventory-check green.
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