What    |Removed                     |Added
                 CC|                            |

--- Comment #6 from 2011-02-19 12:18:10 PST ---
(In reply to comment #4)
> 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."
> 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

>From "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." In other words, declarations
in the current scope always hide declarations in the mixin.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to