[Issue 11124] support "is (T : struct)" syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 25 09:59:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11124



--- Comment #5 from monarchdodra at gmail.com 2013-09-25 09:59:46 PDT ---
(In reply to comment #2)
> (In reply to comment #0)
> > Another case where this could be useful, is if T defines an alias this that
> > resolves to another type:
> > 
> > class C
> > {
> >     T t;
> >     alias t this;
> > }
> > 
> > is (T == struct); //false
> > is (T : struct); //true
> 
> Mistake of:
> 
> is (C == struct); //false
> is (C : struct); //true
> 
> ?

Yes. Sorry. Your code is correct.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list