Re: typeid() after const/immutable qualifiers

2010-08-23 Thread Steven Schveighoffer
On Thu, 19 Aug 2010 12:47:45 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Btw, should I skip trying to use inout at all for now? I've read some posts saying that it's awfully broken, and the example of inout in TDPL doesn't work.. Yes. I have expressed the cases that inout

typeid() after const/immutable qualifiers

2010-08-19 Thread Andrej Mitrovic
In TDPL, page 289 299, there's this code (I've modified the names slightly) and explanation: struct A { const(int[]) c; immutable(int[]) i; } import std.stdio; unittest { const(A) const_a; immutable(A) immu_b; } A short version of the explanation: if qualifiers would apply

Re: typeid() after const/immutable qualifiers

2010-08-19 Thread Andrej Mitrovic
Btw, should I skip trying to use inout at all for now? I've read some posts saying that it's awfully broken, and the example of inout in TDPL doesn't work.. Andrej Mitrovic Wrote: snip

Re: typeid() after const/immutable qualifiers

2010-08-19 Thread bearophile
Andrej Mitrovic: Well first of all, DMD doesn't actually print it out simple qualifiers when arrays are used, for example: I have an open bug report on this. Bye, bearophile

Re: typeid() after const/immutable qualifiers

2010-08-19 Thread Andrej Mitrovic
Good to hear. I was almost going to open an enhancement request. :) bearophile Wrote: Andrej Mitrovic: Well first of all, DMD doesn't actually print it out simple qualifiers when arrays are used, for example: I have an open bug report on this. Bye, bearophile