[Issue 11124] support "is (T : struct)" syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 25 09:06:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11124
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-25 09:06:36 PDT ---
(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
?
And, how this will work when multiple alias this is properly implemented?
--
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