UFCS confusion
Radu
void at null.pt
Fri Jul 13 11:17:32 UTC 2018
On Friday, 13 July 2018 at 11:12:47 UTC, Michael wrote:
> On Friday, 13 July 2018 at 10:52:54 UTC, Radu wrote:
>> On Friday, 13 July 2018 at 10:21:54 UTC, Michael wrote:
>>> [...]
>>
>> Do you try to call member functions? UFCS only works with free
>> functions, meaning declared at module level.
>>
>> https://dlang.org/spec/function.html#pseudo-member
>
> I'm not intentionally trying to call member functions, no. The
> functions are all static functions of a class, but the chaining
> of them using UFCS doesn't seem to work.
OK, static functions of a class are static *member* functions,
they are not free functions.
More information about the Digitalmars-d-learn
mailing list