Skip to content

Update to use dynamic replacement for _NSNumberInitializer #5045

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

Merged

Conversation

jmschonfeld
Copy link
Contributor

In swiftlang/swift-foundation#756 we transitioned the FoundationEssentials --> FoundationInternationalization upcalls from _typeByName to @_dynamicReplacement functions to avoid accidentally looking up types from the toolchain in local builds. In that PR, I also added a dynamic function for Foundation to override for its NSNumber initializer. This PR implements that dynamic replacement so that we can remove the final _typeByName lookup in FoundationEssentials

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@parkera
Copy link
Contributor

parkera commented Aug 1, 2024

cc @kperryua @stephentyrone

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test Linux platform

@jmschonfeld jmschonfeld merged commit 9d1a846 into swiftlang:main Aug 2, 2024
2 of 3 checks passed
@jmschonfeld jmschonfeld deleted the dynamic-nsnumber-initializer branch August 2, 2024 05:17
jmschonfeld added a commit to jmschonfeld/swift-corelibs-foundation that referenced this pull request Aug 2, 2024
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