is(x = module) vs. __traits(isModule, x)

Stefan Koch uplink.coder at googlemail.com
Sat Oct 10 04:01:16 UTC 2020


On Saturday, 10 October 2020 at 00:13:15 UTC, Walter Bright wrote:
> On 10/8/2020 7:04 AM, Steven Schveighoffer wrote:
>> It's literally special cased in the code:
>> 
>> https://github.com/dlang/dmd/blob/013eccaf113e6f23784c615d3ec66434c3629197/src/dmd/expressionsem.d#L5418
>
> Good point. Remove the `is` version.

I agree.


More information about the Digitalmars-d mailing list