Re: .tupleof.stringof

2009-01-21 Thread Christopher Wright
Christopher Wright wrote: Check this out! class Foo { int someField; } pragma (msg, Foo.tupleof[0].stringof); // int pragma (msg, Foo.tupleof[0].mangleof); // someField Why is this? It's counterintuitive. Okay, no, this example is a shorter version of something else that exemplified this beha

Re: .tupleof.stringof

2009-01-21 Thread Christopher Wright
Christopher Wright wrote: Christopher Wright wrote: Check this out! class Foo { int someField; } pragma (msg, Foo.tupleof[0].stringof); // int pragma (msg, Foo.tupleof[0].mangleof); // someField Why is this? It's counterintuitive. Oops, no. mangleof does report the mangled name of the input s

Re: .tupleof.stringof

2009-01-21 Thread Christopher Wright
Christopher Wright wrote: Check this out! class Foo { int someField; } pragma (msg, Foo.tupleof[0].stringof); // int pragma (msg, Foo.tupleof[0].mangleof); // someField Why is this? It's counterintuitive. Oops, no. mangleof does report the mangled name of the input string. It's just that mang

.tupleof.stringof

2009-01-21 Thread Christopher Wright
Check this out! class Foo { int someField; } pragma (msg, Foo.tupleof[0].stringof); // int pragma (msg, Foo.tupleof[0].mangleof); // someField Why is this? It's counterintuitive.