March 03, 2021 What's the default implementation of opCmp/opEquals for structs? | ||||
---|---|---|---|---|
| ||||
the one that the compiler defaults to when you don't provide one? |
March 03, 2021 Re: What's the default implementation of opCmp/opEquals for structs? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jack | 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
|
Copyright © 1999-2021 by the D Language Foundation