Skip to content

markused: some cleanups and improvements#24959

Merged
spytheman merged 8 commits into
vlang:masterfrom
felipensp:markused_cleanup_again
Jul 25, 2025
Merged

markused: some cleanups and improvements#24959
spytheman merged 8 commits into
vlang:masterfrom
felipensp:markused_cleanup_again

Conversation

@felipensp

Copy link
Copy Markdown
Member

No description provided.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23438

@felipensp felipensp changed the title markused: some cleanups markused: some cleanups and improvements Jul 24, 2025
@spytheman spytheman marked this pull request as ready for review July 25, 2025 06:11
Comment on lines +70 to +72
if ast_files[ast_files.len - 1].imports.len > 0 {
core_fns << 'builtin_init'
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That heuristic seems a bit hacky - you could have a freestanding program that imports its own modules, that do not use builtin too.

Doing a loop over ast_files and checking if at least one .mod == 'builtin' may be more reliable.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.
Thanks.

@spytheman spytheman merged commit 73db18b into vlang:master Jul 25, 2025
80 checks passed
@felipensp felipensp deleted the markused_cleanup_again branch July 25, 2025 10:54
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.

2 participants