change mixins

Jonathan M Davis jmdavisProg at gmail.com
Mon Feb 15 02:28:43 PST 2010


BCS wrote:

> Hello Jonathan,
> 
>> (I don't know why you'd want the name in the first place),
> 
> mixin foo!(int) asInt;
> mixin foo!(float) asFloat;
> 
> Without the names you can't access anything.

Well, I obviously need to read up on mixins again. I don't have any clue why 
you'd ever want to access them. I thought that they were just replaced with 
the code that they contain, and I don't know what you'd be trying to access. 
I'll have to go read the documentation again...

- Jonathan M Davis




More information about the Digitalmars-d mailing list