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