Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

[REG 2.072] Revert object.hashOf changes from "use array interface to hashOf()"#1707

Merged
MartinNowak merged 1 commit intodlang:stablefrom
WalterWaldron:fixHashOf
Dec 4, 2016
Merged

[REG 2.072] Revert object.hashOf changes from "use array interface to hashOf()"#1707
MartinNowak merged 1 commit intodlang:stablefrom
WalterWaldron:fixHashOf

Conversation

@WalterWaldron
Copy link
Contributor

Solves issues 16654 & 16764.

See: #1595 (comment)
Issue links: 16654 and 16764

@dlang-bot
Copy link
Contributor

dlang-bot commented Dec 4, 2016

Fix Bugzilla Description
16654 hashOf returns different hashes for the same string value
16764 hashOf is misleading, error-prone, and useless

@WalterBright
Copy link
Member

Reverting does not fix the problems #1595 solves.

@MartinNowak
Copy link
Member

I think everyone is clear, that object.hashOf is an API for the typesafe and CTFEable core.internal.hash.hashOf, and Walter was just confusing the two (also see https://github.com/dlang/druntime/pull/1595/files#r67473386).
Hard to say anything to the comment above other than, please take enough time to understand the arguments and actual changes of other people, before responding.

Copy link
Member

@MartinNowak MartinNowak left a comment

Choose a reason for hiding this comment

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

Thanks, please change your commit message to
fixes issues 16654 && 16764 (see regex) to close the mentioned Bugzilla issues.
There should be checkmark in the fix column of dlang-bot's comment.

@WalterWaldron
Copy link
Contributor Author

Thanks, please change your commit message to
fixes issues 16654 && 16764 (see regex) to close the mentioned Bugzilla issues.

Done.

@MartinNowak
Copy link
Member

Auto-merge toggled on

@MartinNowak MartinNowak merged commit 0b1e32a into dlang:stable Dec 4, 2016
@WalterWaldron WalterWaldron deleted the fixHashOf branch December 4, 2016 17:38
@wilzbach
Copy link
Contributor

I also just wasted quite a bit of time tracking this regression down :/
Thanks a lot @WalterWaldron @MartinNowak - you were definitely faster :)

-> anyways: we really need better testing to avoid such major regressions sneaking into releases.

MartinNowak added a commit to MartinNowak/druntime that referenced this pull request Dec 28, 2016
[REG 2.072] Revert object.hashOf changes from "use array interface to hashOf()"
MartinNowak added a commit that referenced this pull request Dec 28, 2016
Merge pull request #1707 from WalterWaldron/fixHashOf
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants