stringof Bug?

Don Clugston dac at nospam.com.au
Fri Oct 19 08:51:50 PDT 2007


0ffh wrote:
> Don Clugston wrote:
>> Something I've noticed is that x.stringof and (x).stringof are 
>> completely different. So (T!(1)).stringof is something else I'd try.
> 
> I can second that. I remember once I had a templated struct and
> needed sizeof. "(StructT!(int)).sizeof" worked for me while the
> "StructT!(int).sizeof" didn't. Maybe "." binds closer than "!"?

I think you're right. It also seems to be right-associative, so a.b.c.d ALWAYS 
parses as a.(b.(c.d)).
1.23.stringof
doesn't work (that's in Bugzilla).



More information about the Digitalmars-d mailing list