Why doesn't this work when the function is a static method?

Jack jckj33 at gmail.com
Thu Jan 14 15:20:54 UTC 2021


On Thursday, 14 January 2021 at 09:13:27 UTC, evilrat wrote:
> On Thursday, 14 January 2021 at 05:44:43 UTC, Jack wrote:
>> On Wednesday, 13 January 2021 at 17:21:23 UTC, Paul Backus 
>> wrote:
>>>
>>> Member functions (including static ones) can't be called with 
>>> UFCS.
>
>>  is this documented somewhere? Is this going to change?
>
> It will stay as is.
> It is somewhat vaguely described in p.7 under UFCS section in 
> functions
>
> https://dlang.org/spec/function.html#pseudo-member

I see, thanks


More information about the Digitalmars-d-learn mailing list