Re: template specialization and template mixin

2013-05-16 Thread Andrej Mitrovic
On 5/16/13, Jack Applegame wrote: > Why this doesn't compile? I think this is a bug.

template specialization and template mixin

2013-05-16 Thread Jack Applegame
This code compiles , as expected struct A { void func(string s : "foo")() { pragma(msg, "func for foo"); } void func(string s)() { pragma(msg, "func for others: " ~ s); } } void main() { A a; a.func!"foo"(); a.func!"bar"();