Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds #21160

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Apr 1, 2024

The changes move from using a workaround with public constants to a less verbose, imho more elegant way to handle imports whose symbols are not directly used (a case mostly for our C wrappers).

This will also remove the "workaround-constants" - that might be confusing - from module documentations. E.g. json, mbedtls and several others

Screenshot_20240401_184439 Screenshot_20240401_184446

Changes are covered by our current test suite.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman changed the title vlib, examples: update handling of imports whose symbols are not directly used in imported file breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds Apr 1, 2024
@spytheman spytheman merged commit c086bee into vlang:master Apr 1, 2024
54 checks passed
@ttytm ttytm deleted the v/elegant-no-sym-imports branch April 1, 2024 19:14
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.

None yet

2 participants