Skip to content

Conversation

@metagn
Copy link
Collaborator

@metagn metagn commented Apr 12, 2025

split from #24204, closes #7674

The {.size.} pragma no longer restricts the given size to 1, 2, 4 or 8 if it is used for an imported type. This is not tested very thoroughly but there's no obvious reason to disallow it.

@Araq
Copy link
Member

Araq commented Apr 12, 2025

Guessing the alignment seems very dangerous.

@Araq Araq merged commit 1ef9a65 into nim-lang:devel Apr 12, 2025
18 checks passed
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 1ef9a65

Hint: mm: orc; opt: speed; options: -d:release
179272 lines; 8.875s; 652.707MiB peakmem

narimiran pushed a commit that referenced this pull request Apr 14, 2025
split from #24204, closes #7674

The `{.size.}` pragma no longer restricts the given size to 1, 2, 4 or 8
if it is used for an imported type. This is not tested very thoroughly
but there's no obvious reason to disallow it.

(cherry picked from commit 1ef9a65)
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.

Size pragma doesn't allow >8 bytes types

2 participants