On Sun, 05 Aug 2012 16:32:49 +0200, Adam D. Ruppe <[email protected]> wrote:

import std.algorithm;
foreach(i; [1,2,3].map!"a+1") {

}
prophate.d(5): Error: not a property [1,2,3].map!("a+1")


Of course, this is relatively new, using ufcs in 2.059, so the breakage probably isn't too bad, but I'm not the only one who writes it this way - I've seen a number of reddit and newsgroup comments do this too, especially when chaining it.

Yeah. I seem to do that every single time I want to give an example.

--
Simen

Reply via email to