Partial specialisation is foobarred?!

2009-08-16 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been poking around on the bug track and can't find a specific bug report, but it seems unlikely this hasn't been noticed before. This is w/ dmd 2.031 & 1.046 // import std.stdio; struct nil { } class D(T) { uint _l

Re: Partial specialisation is foobarred?!

2009-08-16 Thread Jason House
FWIW, I usually use static if instead of specialization. In D2, you can also use if expressions as part of the template declaration. As far as your code below, I think the declaration of M without using it is suspect. I don't have a compiler to play with right now... div0 Wrote: > -BEGIN P

Re: Partial specialisation is foobarred?!

2009-08-16 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason House wrote: > FWIW, I usually use static if instead of specialization. In D2, you can also > use if expressions as part of the template declaration. As far as your code > below, I think the declaration of M without using it is suspect. I don't