[Issue 2740] Template Mixins do not work as advertised

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 3 06:34:52 PST 2010


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


Bruno Medeiros <bdom.pub+deebugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bdom.pub+deebugz at gmail.com


--- Comment #4 from Bruno Medeiros <bdom.pub+deebugz at gmail.com> 2010-12-03 06:33:18 PST ---
Hum, I suspect the code above should not even compile. Instantiating the mixin 
"is analogous to cutting and pasting the body of the template into the location
of the mixin." http://www.digitalmars.com/d/2.0/template-mixin.html
Thus it should be the same as:

class Foo : IFooable {
  bool foo() { return false; }
  bool foo() { return false; }
}


which should be a semantic error, I think. See
http://d.puremagic.com/issues/show_bug.cgi?id=5312

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