Mixin Problems with D2.0

Brian White bcwhite at pobox.com
Thu Mar 6 04:32:57 PST 2008


> The problem is that "Foo" and "bar", as D strings, are 
> invariant(char)[], not char[].
> 
> The solution is to change the template to
> 
>> template GenStruct(const char[] Name, const char[] M1)

Got it.  Why not declare them "invariant char[]", or does it simply make 
no difference?

-- Brian


More information about the Digitalmars-d-learn mailing list