Re: Foo!("a").????? == `Foo!("a")`

2009-12-08 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:hff1qc$1h6...@digitalmars.com... >I don't suppose there's an easy general way to get the paramaters of a >templated type just from the type itself? Ie, a way to get around this: > > class Foo(char[] str) {} > static assert(Foo!("a").stringof != Foo!("b").s

Re: Foo!("a").????? == `Foo!("a")`

2009-12-06 Thread Nick Sabalausky
"Simen kjaeraas" wrote in message news:op.u4h55pbcvxi...@biotronic-pc.home... > On Sun, 06 Dec 2009 02:36:58 +0100, Nick Sabalausky wrote: > >> I don't suppose there's an easy general way to get the paramaters of a >> templated type just from the type itself? Ie, a way to get around this: >> >>

Re: Foo!("a").????? == `Foo!("a")`

2009-12-05 Thread Simen kjaeraas
On Sun, 06 Dec 2009 02:36:58 +0100, Nick Sabalausky wrote: I don't suppose there's an easy general way to get the paramaters of a templated type just from the type itself? Ie, a way to get around this: class Foo(char[] str) {} static assert(Foo!("a").stringof != Foo!("b").stringof) // ^ fails

Re: Foo!("a").????? == `Foo!("a")`

2009-12-05 Thread Bill Baxter
On Sat, Dec 5, 2009 at 5:36 PM, Nick Sabalausky wrote: > I don't suppose there's an easy general way to get the paramaters of a > templated type just from the type itself? Ie, a way to get around this: > > class Foo(char[] str) {} > static assert(Foo!("a").stringof != Foo!("b").stringof) > // ^ fa

Foo!("a").????? == `Foo!("a")`

2009-12-05 Thread Nick Sabalausky
I don't suppose there's an easy general way to get the paramaters of a templated type just from the type itself? Ie, a way to get around this: class Foo(char[] str) {} static assert(Foo!("a").stringof != Foo!("b").stringof) // ^ fails because it evaluates to "Foo" != "Foo" I can probably work ar