[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 27 22:02:15 PST 2012


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



--- Comment #2 from siegelords_abode at yahoo.com 2012-12-27 22:02:13 PST ---
(In reply to comment #1)
> Since it's a struct you can also use:
> 
> int opCmp()(auto const ref A a) const

This fails the assert.

> Otherwise I don't think this is a rejects-valid, it's a documentation issue.
> Struct literals (manifests included) are no longer lvalues in 2.061, this is by
> design.

Then this bug highlights what a bad set of design decisions it was to both make
struct literals not lvalues AND require the proper opCmp signature to function
only for lvalues.

-- 
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