enum scope
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Jan 28 05:59:28 PST 2012
On 1/28/12, Daniel Murphy <yebblies at nospamgmail.com> wrote:
> "Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message
> news:mailman.101.1327757271.25230.digitalmars-d at puremagic.com...
>> I did notice something about mixins, they hide existing aliases. If
>> you already had those aliases listed and you added this mixin, the
>> newly mixed in aliases will not conflict with the old ones. I find
>> this behavior rather odd, even if it's defined this way..
>
> Are you sure? I thought it was the other way around, mixed-in members did
> not override existing ones...
int foo, bar;
alias foo target;
alias bar target; // error
mixin("alias bar target;"); // but use this instead and no problem..
More information about the Digitalmars-d
mailing list