[Issue 5558] opIn_r not detected as method for 'in' in pointed struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 10 11:13:12 PST 2011


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


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com


--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-02-10 11:10:45 PST ---
Actually, I feel that it should work on both sides.  The spec states that the
compiler rewrites for example "a + b" as:

try a.opBinary!("+")(b), see if it compiles, if not, try
b.opBinaryRight!("+")(a).

Since the dot operator automatically dereferences, I think it should also in
this case after the rewrite.

Note, opIn_r is not supposed to be used anymore, opBinaryRight!("in") is used,
but it still should be a rewrite.  However, the opBinaryRight!("in") doesn't
work at all...

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