Does is(f == function) work?

Adam D. Ruppe destructionator at gmail.com
Tue Mar 9 02:57:46 UTC 2021


On Tuesday, 9 March 2021 at 02:50:11 UTC, Andrey Zherikov wrote:
> writeln(is(f == function));    // prints "false"

try

is(typeof(f) == function)

it is kinda weird but that's the trick


More information about the Digitalmars-d-learn mailing list