More pathological range subtleties
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Feb 12 15:38:55 PST 2013
On Tue, Feb 12, 2013 at 05:45:45PM -0500, Andrei Alexandrescu wrote:
> On 2/12/13 4:09 PM, H. S. Teoh wrote:
> >But at least, this code should refuse to compile when you try to assign
> >ror.front = e (because .front is non-ref). I guess this is better than
> >nothing.
>
> Yah, that's a major one. Has this been filed yet?
[...]
It has been, for a while. Though it's non-obvious from the bug
description:
http://d.puremagic.com/issues/show_bug.cgi?id=8764
I'm thinking that the fix should simply make it illegal to pass Chunks
to transposed, so it will force the user to call array() which avoids
the bug.
T
--
Talk is cheap. Whining is actually free. -- Lars Wirzenius
More information about the Digitalmars-d
mailing list