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

reland "small changes to make Base more statically compileable (#53778)" #53820

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

JeffBezanson
Copy link
Sponsor Member

This makes it easier to fully-statically-type Base and init methods. The changes are from gb/small-image2.

This makes it easier to fully-statically-type Base and init methods.
The changes are from gb/small-image2.
global mkpidlock_hook
global trymkpidlock_hook
global parse_pidfile_hook
global mkpidlock_hook::Any
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Out of curiosity, what effect does this have?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

A global can be given a type later, so if it doesn't have a type yet when the code is compiled we emit a convert call to an unknown type.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Ideally global x would be identical to global x::Any (like function arguments) but that might break some use cases, not sure.

@Keno Keno merged commit 6172020 into master Mar 23, 2024
7 checks passed
@Keno Keno deleted the jb/morecompileable branch March 23, 2024 04:23
@giordano giordano added the kind:re-land This relands a PR that was previously merged but was later reverted. label Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:re-land This relands a PR that was previously merged but was later reverted.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants