[Issue 9053] Can't overload functions with mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 21 09:35:20 PST 2012


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


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |timon.gehr at gmx.ch
         Resolution|                            |INVALID


--- Comment #1 from timon.gehr at gmx.ch 2012-11-21 09:35:19 PST ---
That is how it is supposed to work.

"Mixin Scope
The declarations in a mixin are ‘imported’ into the surrounding scope. If the
name of a declaration in a mixin is the same as a declaration in the
surrounding scope, the surrounding declaration overrides the mixin one"

dlang.org/template-mixin.html

You can use a string mixin to generate overloads.

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