http://d.puremagic.com/issues/show_bug.cgi?id=8934
Dmitry S <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Dmitry S <[email protected]> 2012-12-17 01:24:08 PST --- I tried to reproduce, but the following code compiles and works correctly with dmd built from the current github head (on MacOSX): import std.stdio; import std.algorithm; string modules[] = [ "foo", "bar", "zoo" ]; int main(string[] args) { foreach (string line; ["hello", "bar", "world"]) { if (any!(a => a == line)(modules)) { writeln(line, " found"); } else { writeln(line, " not found"); } } return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
