Re: What's the default implementation of opCmp/opEquals for structs?

2021-03-03 Thread Steven Schveighoffer via Digitalmars-d-learn
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

What's the default implementation of opCmp/opEquals for structs?

2021-03-03 Thread Jack via Digitalmars-d-learn
the one that the compiler defaults to when you don't provide one?