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

Use Entry struct from TypeInfo_AssociativeArray instead of local one #20900

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

schveiguy
Copy link
Member

Thanks to #20863, we now have an actual entry struct in object.d, use that instead of a different one, in case there is some weird change in how AA's work that would invalidate this one.

Also saves a template instantiation.

just one less template and one less place to maintain.
@schveiguy schveiguy added the Review:Trivial typos, formatting, comments label Feb 19, 2025
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @schveiguy!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#20900"

@schveiguy schveiguy added the Druntime:AA Specific to Associative Arrays label Feb 19, 2025
@rainers
Copy link
Member

rainers commented Feb 19, 2025

I made the same replacement in an intermediate version of #20863, but thought it would somehow prohibit CTFE. It seems I was fooled by other issues.

@thewilsonator thewilsonator merged commit 60a3060 into dlang:master Feb 19, 2025
42 checks passed
@schveiguy schveiguy deleted the useentryfromobject branch February 20, 2025 12:13
MatthewQiu-5 pushed a commit to MatthewQiu-5/dmd that referenced this pull request Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Druntime:AA Specific to Associative Arrays Review:Trivial typos, formatting, comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants