On Sunday, 16 March 2014 at 20:27:35 UTC, Timon Gehr wrote:
On 03/16/2014 08:27 PM, monarch_dodra wrote:

f.byLine.map!idup

Indeed, I've been wanting to write this before. IMO, not being able to
write it is a serious inconsistency.

What is it inconsistent with?

Nevermind. I thought you could write "map!dup" like you can with most other *functions*, but "dup" is a member property function. In particular, things like "length"/"reserve" or whatnot are actually free functions that take an argument, but not dup.

So UFCS tends to blur the line between both, and what can be used where.

Reply via email to