"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
"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:
>>
>>
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
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
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