typeof(func!0) != typeof(func!0())

Andrey Zherikov andrey.zherikov at gmail.com
Mon Aug 22 22:48:52 UTC 2022


On Monday, 22 August 2022 at 17:40:59 UTC, Andrey Zherikov wrote:
> I'm providing a struct (`U` in examples above) with some API 
> and I'm looking for this struct as an UDA (through 
> `hasUDA`/`getUDAs`). And actually I already have a mix of 
> member-functions and free-functions in my API so it's gonna be 
> more consistent if I make all of them free-functions.

Just checked - free functions work so I'll migrate API to them.

Thanks everyone for answering my questions.


More information about the Digitalmars-d-learn mailing list