[Issue 6434] opDispatch must be considered before alias this.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 6 23:25:24 PST 2013


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |enhancement


--- Comment #11 from Walter Bright <bugzilla at digitalmars.com> 2013-03-06 23:25:22 PST ---
I agree with Steven. opDispatch should be considered first. The rationale is
straightforward - the wrapper gets to decide, not the wrappee, what opDispatch
means.

If the wrapper wants to forward to the alias this, it can do so with an
appropriate implementation of opDispatch. But if alias this takes precedence,
one is stuck.

So, barring a more compelling rationale for alias this overriding, this
enhancement should be rejected.

I also marked this as an enhancement.

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