Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 04, 2016 Proper generic way to get the hash of something? | ||||
---|---|---|---|---|
| ||||
What is the proper generic way to get the hash of something? It seems that hashOf has been changed to no longer call toHash on anything.... Just blindly casts to void[]. It actually seems now toHash doesn't call any of the specializations of core.internal.hash.hashOf except the one for void[]. The change seems pretty dumb and broke my code, not sure why it was done, the breakage is not in the change log :/. So what is the proper way to get the hash of something now? |
December 04, 2016 Re: Proper generic way to get the hash of something? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | Actually better question, why was this breaking change allowed? The semantics of hashOf have completely changed, why was this done?????? |
December 04, 2016 Re: Proper generic way to get the hash of something? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | Well for now I am going to revert back to 2.071.2, 2.072 seems broke as fuck. |
December 04, 2016 Re: Proper generic way to get the hash of something? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | On Sunday, 4 December 2016 at 06:51:24 UTC, Tofu Ninja wrote: > So what is the proper way to get the hash of something now? This question came up a few days ago: http://forum.dlang.org/post/o1igoc$21ma$1@digitalmars.com |
December 11, 2016 Re: Proper generic way to get the hash of something? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | On Sunday, 4 December 2016 at 07:50:26 UTC, Tofu Ninja wrote: > Well for now I am going to revert back to 2.071.2, 2.072 seems broke as fuck. For the record: it has been reverted: https://github.com/dlang/druntime/pull/1707 and thus should be part of the next point release. |
Copyright © 1999-2021 by the D Language Foundation