```d auto opCast(T)() if (is(T == bool)) { return _obj !is null; } ``` ```d auto opCast(T : bool)() { return _obj !is null; } ```
Are these identical? Or is there a different usage for the (T :
something) form?
- What is the difference between these templ... cc via Digitalmars-d-learn
- Re: What is the difference between th... evilrat via Digitalmars-d-learn