@property
Simen Kjaeraas
simen.kjaras at gmail.com
Sun Aug 5 08:21:48 PDT 2012
On Sun, 05 Aug 2012 16:32:49 +0200, Adam D. Ruppe
<destructionator at gmail.com> 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
More information about the Digitalmars-d
mailing list