is(x = module) vs. __traits(isModule, x)
Kagamin
spam at here.lot
Thu Oct 8 08:12:51 UTC 2020
On Wednesday, 7 October 2020 at 18:46:07 UTC, Steven
Schveighoffer wrote:
> Why both? The first thing that struck me is that, std.stdio is
> NOT a type. `is` specifically says it works with types. So that
> seems out of place (indeed the documentation does not mention
> anything special about this).
Guess, it's a bit of pl theory, I saw mentioned somewhere that
modules count as types. Not sure about packages though.
More information about the Digitalmars-d
mailing list