Does is(f == function) work?

Adam D. Ruppe destructionator at gmail.com
Tue Mar 9 16:31:12 UTC 2021


On Tuesday, 9 March 2021 at 11:58:45 UTC, Andrey Zherikov wrote:
> Should it work for in this case as well?
>
> alias f = (){};

I actually don't know. The docs do say that function pointers 
work differently - they match `is(typeof(f) == return)` but it 
isn't clear if it would match == function.

You'd certainly think it would... but idk.


More information about the Digitalmars-d-learn mailing list