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

Walter Bright newshound2 at digitalmars.com
Sat Oct 10 00:13:15 UTC 2020


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.


More information about the Digitalmars-d mailing list