Propagating Errors
FeepingCreature
feepingcreature at gmail.com
Fri Mar 8 07:00:39 UTC 2019
On Friday, 8 March 2019 at 06:45:24 UTC, Nicholas Wilson wrote:
> But it also returns false if the expression is false
>
> `is(T==int)` could return false because T is an error AST node,
> because T is undefined in the context or because T is not
> `int`. I'm missing how you would handle the latter case.
Ah.
I guess in that case, since this is a compiletime expression and
can change its type at will, you could simply just return `false`.
More information about the Digitalmars-d
mailing list