Skip to content

Give struct and fields the constant's visibility - #2

Merged
lgarczyn merged 1 commit into
mainfrom
vis-fields
Aug 24, 2026
Merged

lgarczyn merged 1 commit into
mainfrom
vis-fields

Conversation

@lgarczyn

Copy link
Copy Markdown
Owner

Fields were always private, so X.f32 failed for any constant used outside its defining module. Switch the visibility capture from tt munching to the vis fragment, which drops the three forwarding rules and lets the same $vis apply to the struct, its fields and the const.

Closes #1

Fields were always private, so `X.f32` failed for any constant used
outside its defining module. Switch the visibility capture from tt
munching to the `vis` fragment, which drops the three forwarding rules
and lets the same `$vis` apply to the struct, its fields and the const.

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
Closes #1
@lgarczyn
lgarczyn merged commit 57d7750 into main Aug 24, 2026
1 check passed
@lgarczyn
lgarczyn deleted the vis-fields branch August 24, 2026 11:56
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