[Issue 8113] alias this and opDispatch() don't forward opCall
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 17 21:46:02 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8113
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-05-17 21:47:32 PDT ---
(In reply to comment #2)
> struct C { void opCall() { } }
> struct A { C c; alias c this; }
> void main() { A f; f(); }
Hmm, thank you. I'll try to fix the issues this weekend.
(In reply to comment #3)
> And regarding opDispatch:
>
> struct C { void opDispatch(string op, T...)(T) { } }
> void main() { C f; f(); }
I'm not sure this is valid. With current implementation, opDispatch cannot
forward operator overloading like f.opDispatch!"opUnary". I think this is an
enhancement issue about opDispatch feature. Creating new issue is better IMO.
--
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