[Issue 7206] Constructor from mixin does not conflict with other constructors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 2 14:42:30 PST 2012


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


Trass3r <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |mrmocool at gmx.de


--- Comment #3 from Trass3r <mrmocool at gmx.de> 2012-01-02 14:42:28 PST ---
Imho it isn't right though to silently accept this.
There should at least be a warning that the code doesn't work as the general
programmer would expect and maybe give a hint that you can achieve overload
resolution with an additional alias.

Otherwise it heavily depends on your code if you are lucky and get an error
message like in http://d.puremagic.com/issues/show_bug.cgi?id=3332 or
unexpected behavior.

This is not limited to constructors. Overload resolution in general isn't
easily possible.
I have to resort to ugly string mixins just because of this.

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