http://d.puremagic.com/issues/show_bug.cgi?id=8715
--- Comment #4 from bearophile_h...@eml.cc 2012-10-12 16:22:58 PDT --- (In reply to comment #3) > (map already accepts a struct with an appropriate constructor as that > fits the 'callable' definition.) Right. But this shows a different limit. I think code like this is accepted in Clojure: import std.algorithm: map; void main() { auto keys = [1, 2, 1, 1, 1]; auto a = [0, 10, 20]; auto r1 = map!(k => a[k])(keys); // OK auto r2 = map!a(keys); // Error auto aa = [1: 10, 2: 20]; auto r3 = map!(k => aa[k])(keys); // OK auto r4 = map!aa(keys); // Error } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------