is(x = module) vs. __traits(isModule, x)
Stefan Koch
uplink.coder at googlemail.com
Thu Oct 8 13:04:18 UTC 2020
On Thursday, 8 October 2020 at 12:54:49 UTC, Adam D. Ruppe wrote:
> On Thursday, 8 October 2020 at 10:11:59 UTC, Max Samukha wrote:
>> Wrapping __traits in templates is a necessity if you want to
>> use them for anything interesting (such as passing them to
>> higher order functions):
>
> I kinda wish we had a template lambda.
you mean alias compiles (__top A) = ((__top x) =>
__traits(compiles, x)(A); ?
More information about the Digitalmars-d
mailing list