[Issue 11161] Document the default struct equality comparison and operator overloading

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 3 02:53:11 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11161



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-03 02:53:07 PDT ---
(In reply to comment #1)
> I would expect that alias this would have zero effect on == save for when
> comparing with a value of the type that's being aliased instead of with a value
> of the same type.

'alias this' should be considered for operator overloading. If not, sub-typing
by using 'alias this' won't work anymore.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list