Thread overview
[Issue 18679] std.complex.opEquals has opEquals but no toHash
Mar 28, 2018
Jack Stouffer
Mar 07, 2019
Vasyl Teliman
Apr 02, 2019
Nathan S.
Apr 25, 2021
Iain Buclaw
March 28, 2018
https://issues.dlang.org/show_bug.cgi?id=18679

Jack Stouffer <jack@jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |17206


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=17206
[Issue 17206] [Tracking] Check that opEquals and toHash are both defined or
neither are defined
--
March 07, 2019
https://issues.dlang.org/show_bug.cgi?id=18679

Vasyl Teliman <vasniktel@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vasniktel@gmail.com

--- Comment #1 from Vasyl Teliman <vasniktel@gmail.com> ---
I'm wondering whether

`hashOf(this.im, hashOf(this.re))`

is sufficient for this task.

--
April 02, 2019
https://issues.dlang.org/show_bug.cgi?id=18679

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n8sh.secondary@hotmail.com

--- Comment #2 from Nathan S. <n8sh.secondary@hotmail.com> ---
Vasyl Teliman: it is sufficient, which indicates that we don't actually need a custom `toHash` here and the auto-generated hash for structs is sufficient.

--
April 25, 2021
https://issues.dlang.org/show_bug.cgi?id=18679

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ibuclaw@gdcproject.org
         Resolution|---                         |FIXED

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
I will close this because you can use `c.hashOf()` instead, as per last
comment.

--