www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What's the default implementation of opCmp/opEquals for structs?

reply Jack <jckj33 gmail.com> writes:
the one that the compiler defaults to when you don't provide one?
Mar 03 2021
parent Steven Schveighoffer <schveiguy gmail.com> writes:
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