[Issue 4603] array(iota(1, 0)) error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 19 18:40:17 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4603
Brad Anderson <eco at gnuk.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eco at gnuk.net
--- Comment #9 from Brad Anderson <eco at 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: -------
More information about the Digitalmars-d-bugs
mailing list