Checking for possibility of implicit conversions

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Mar 14 10:35:24 PDT 2012


On Wed, Mar 14, 2012 at 06:08:24PM +0100, Adam D. Ruppe wrote:
> if(is(T : S))
> 
> http://dlang.org/expression.html#IsExpression
> 
> this is form #2.

Ahh, thanks. I keep forgetting what the various forms of is() do... sigh.

Another question: is wstring assignable to dstring, or string to wstring
or dstring? I'm finding that is(wstring:dstring) returns false.


T

-- 
There are four kinds of lies: lies, damn lies, and statistics.


More information about the Digitalmars-d-learn mailing list