June 29, 2011 [Issue 4603] array(iota(1, 0)) error | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4603 --- Comment #8 from bearophile_hugs@eml.cc 2011-06-29 13:34:52 PDT --- See also bug 6222 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 20, 2012 [Issue 4603] array(iota(1, 0)) error | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4603 Brad Anderson <eco@gnuk.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eco@gnuk.net --- Comment #9 from Brad Anderson <eco@gnuk.net> 2012-04-19 18:41:12 PDT --- This now seems to work as you want in DMD 2.059. The following: import std.stdio, std.range; void main() { auto empty_array = array(iota(1, 0)); writeln("type: ", typeof(empty_array).stringof, ", empty? ", empty_array.empty, ", contents: ", empty_array); } Outputs: type: int[], empty? true, contents: [] I'd say it can be closed and marked RESOLVED now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 20, 2012 [Issue 4603] array(iota(1, 0)) error | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4603 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- 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