http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #16 from Kenji Hara 2012-11-10 05:10:01 PST
---
(In reply to comment #15)
> Now this code:
>
> void main() {
> int[] array = [10, 20, 30];
> foreach (const i, x; array) i++;
> foreach (immutable i, x; array) i++;
> }
>
http://d.puremagic.com/issues/show_bug.cgi?id=4090
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|
/4bc728c24256d11454b580b82a3201e32b8e286d
3rd fix of Issue 4090 - No foreach type inference with const, ref etc modifiers
https://github.com/D-Programming-Language/dmd/commit/5b77a1f4f46826562d8785489ac120e1f1753a15
Merge pull request #1261 from 9rnsr/fix4090
3rd fix of Issue 4090 - No foreach type inference with const, ref etc
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #13 from bearophile_h...@eml.cc 2012-11-06 10:47:12 PST ---
(In reply to comment #12)
> Ouch... sorry, will fix and post the 3rd pull.
Thank you Hara. Your new pull request, with a ton of unittests is:
https://github.com/9rnsr/dmd/c
http://d.puremagic.com/issues/show_bug.cgi?id=4090
Kenji Hara changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #11 from bearophile_h...@eml.cc 2012-11-05 18:56:37 PST ---
void main() {
int[] array = [10, 20, 30];
foreach (const i, x; array) {}
foreach (immutable i, x; array) {}
}
It gives:
test.d(3): Error: cannot modify const
http://d.puremagic.com/issues/show_bug.cgi?id=4090
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|
/423b395e24c3cb5ee6387524b40d82ceb16696c2
fix Issue 4090 - more fix for the foreach-range statement
https://github.com/D-Programming-Language/dmd/commit/6d60ced035c322da3a30991b69180a768045b48f
Merge pull request #1249 from 9rnsr/fix4090
Additional fix for Issue 4090 - No foreach type inference with const, ref etc
modifiers
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #8 from Kenji Hara 2012-11-02 20:26:26 PDT ---
Posted an additional pull request:
https://github.com/D-Programming-Language/dmd/pull/1249
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You ar
http://d.puremagic.com/issues/show_bug.cgi?id=4090
yebblies changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #6 from bearophile_h...@eml.cc 2012-10-28 04:49:53 PDT ---
But this program compiles with no errors, do you want me to reopen this issue?
void main() {
foreach (const i; 0 .. 10)
i++;
}
--
Configure issuemail: http://
http://d.puremagic.com/issues/show_bug.cgi?id=4090
yebblies changed:
What|Removed |Added
Keywords||pull
Status|NEW
/dda2c5cd02f2b60bb58c4c56c17727fe31c2ea45
fix Issue 4090 - No foreach type inference with const, ref etc modifiers
https://github.com/D-Programming-Language/dmd/commit/c6f32af2ccbc5a27d0174cc84121ba90eba6a6e2
Merge pull request #1033 from 9rnsr/fix4090
Issue 4090 - No foreach type inference with const, ref etc modifiers
--
Configure
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #4 from Kenji Hara 2012-09-16 04:53:49 PDT ---
*** Issue 8649 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail beca
http://d.puremagic.com/issues/show_bug.cgi?id=4090
Kenji Hara changed:
What|Removed |Added
Keywords||spec
Platform|x86
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #2 from yebblies 2011-09-07 18:15:11 EST ---
*** Issue 5255 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail becaus
http://d.puremagic.com/issues/show_bug.cgi?id=4090
--- Comment #1 from yebblies 2011-09-07 18:14:50 EST ---
*** Issue 6616 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail becaus
17 matches
Mail list logo