[Issue 4662] Array ops on const arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 15 06:05:20 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #7 from yebblies <yebblies at gmail.com> 2012-07-15 23:05:17 EST ---
(In reply to comment #6)
> The two problems of the example seems fixed. Now this program:
>
>
> void main() {
> const int[] a = new int[5];
> int[] b = new int[5];
> b[] += a[];
> }
>
>
> Gives:
> test.d(4): Error: slice cast(const(int)[])b[] is not mutable
>
> I think is a rejects-valid.
Yes, my mistake.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list