Re: Structs as Keys for AAs

2017-08-09 Thread Steven Schveighoffer via Digitalmars-d
On 8/9/17 7:31 PM, Q. Schroll wrote: In [1] it says at 5. that For this reason, and for legacy reasons, an associative array key is not allowed to define a specialized opCmp, but omit a specialized opEquals. This restriction may be removed in future versions of D. I'm not completely sure

Re: Structs as Keys for AAs

2017-08-09 Thread H. S. Teoh via Digitalmars-d
On Wed, Aug 09, 2017 at 11:31:44PM +, Q. Schroll via Digitalmars-d wrote: > In [1] it says at 5. that > > > For this reason, and for legacy reasons, an associative array key is > > not allowed to define a specialized opCmp, but omit a specialized > > opEquals. This restriction may be removed