digitalmars.D.learn - What's the default implementation of opCmp/opEquals for structs?
- Jack (1/1) Mar 03 2021 the one that the compiler defaults to when you don't provide one?
- Steven Schveighoffer (4/5) Mar 03 2021 There's no default opCmp.
the one that the compiler defaults to when you don't provide one?
Mar 03 2021
On 3/3/21 1:37 PM, Jack wrote:the one that the compiler defaults to when you don't provide one?There's no default opCmp. For opEquals, it's a memberwise comparison. -Steve
Mar 03 2021