UFCS limit

bauss jj_1337 at live.dk
Fri Jun 17 06:37:36 UTC 2022


On Friday, 17 June 2022 at 05:17:20 UTC, Tejas wrote:
> On Friday, 17 June 2022 at 01:04:28 UTC, Paul Backus wrote:
>
>>
>> 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.
>
> Would it be worthwhile to extend the scope of UFCS to 
> accomodate this use case as well though??

I think it would lead to a lot of confusing and ambiguity.


More information about the Digitalmars-d-learn mailing list