Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
January 09, 2012 [Issue 7258] New: std.array.array of mutable range of cost items | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7258 Summary: std.array.array of mutable range of cost items Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2012-01-09 12:46:15 PST --- I think std.array.array shoult support code like this too, if possible: import std.algorithm: map; import std.array: array; void main() { auto r = map!(a => cast(const int)a)([1, 2]); array(r); } DMD 2.058 Head: ...\dmd2\src\phobos\std\array.d(55): Error: result[i] isn't mutable test.d(5): Error: template instance std.array.array!(Result) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 31, 2012 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|std.array.array of mutable |std.array.array of const |range of cost items |items --- Comment #1 from bearophile_hugs@eml.cc 2012-01-30 17:12:30 PST --- Simpler test case: import std.array: array; void main() { const(int)[] A = [1, 2]; array(A); } DMD 2.058head: ...\dmd2\src\phobos\std\array.d(55): Error: result[i] isn't mutable test.d(4): Error: template instance std.array.array!(const(int)[]) error instantiating I have also renamed this bug report. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 31, 2012 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com Platform|x86 |All OS/Version|Windows |All Severity|enhancement |normal -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 19, 2012 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com Severity|normal |enhancement -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 19, 2012 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 --- Comment #2 from bearophile_hugs@eml.cc 2012-04-19 15:24:38 PDT --- This is borderline between a bug and an enhancement request. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2012 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal --- Comment #3 from yebblies <yebblies@gmail.com> 2012-07-11 00:51:27 EST --- I suspect the reason std.array.array does not handle this case is due to an oversight and is not part of the design, and this is therefore a bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 10, 2013 [Issue 7258] std.array.array of const items | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=7258 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |WORKSFORME --- Comment #4 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-09 21:51:07 PST --- Both cases fixed in 2.060. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation