UFCS limit

Paul Backus snarwin at gmail.com
Fri Jun 17 01:04:28 UTC 2022


On Thursday, 16 June 2022 at 23:59:06 UTC, Antonio wrote:
> Is it there any way to apply UFCS on the returned method in the 
> same expression?

Nope. The way UFCS works is that allows you to call free 
functions using member-function syntax, and member-function 
syntax is always `object.memberName`, so UFCS only works for 
functions that have a name, not anonymous functions.


More information about the Digitalmars-d-learn mailing list