www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Mixin Language Documentation -- error

reply Oliver Kania <oliverkania googlemail.com> writes:
Documentation:
If two different mixins are put in the same scope, and each define a
declaration with the same name, there is an ambiguity error when the
declaration is referenced: ...

The call to func() is ambiguous because Foo.func and Bar.func are in different
scopes.

Should read : are in the SAME scope.

Regards, Oliver
Aug 12 2009
parent Brad Roberts <braddr bellevue.puremagic.com> writes:
On Wed, 12 Aug 2009, Oliver Kania wrote:

 Documentation:
 If two different mixins are put in the same scope, and each define a
 declaration with the same name, there is an ambiguity error when the
 declaration is referenced: ...
 
 The call to func() is ambiguous because Foo.func and Bar.func are in different
 scopes.
 
 Should read : are in the SAME scope.
 
 Regards, Oliver
Please file a bug report: http://d.puremagic.com/issues/ Thanks, Brad
Aug 12 2009