Broken UFCS Sucks

2011-10-20 Thread Nick Sabalausky
Just need to vent a little about this... This is very nice: class Foo { string doSomething(string str) { return ...; } void blah(int[] arr, string[] defines) { auto a = arr .filter!"a<10"() .map!"a*2"() .reduce!"a+b"(); auto b = defines.map!`"--define="~a`() .join

Re: Broken UFCS Sucks

2011-10-21 Thread Peter Alexander
On 21/10/11 7:27 AM, Nick Sabalausky wrote: Just need to vent a little about this... This is very nice: auto a = arr .filter!"a<10"() .map!"a*2"() .reduce!"a+b"(); Can't you do auto a = pipe!(filter!"a<10", map!"a*2", reduce!"a+b"); ??? Stil