[Issue 11124] support "is (T : struct)" syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 25 09:53:26 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11124
--- Comment #4 from monarchdodra at gmail.com 2013-09-25 09:53:24 PDT ---
(In reply to comment #2)
> And, how this will work when multiple alias this is properly implemented?
I don't understand the problem? Isn't it the same as, say: "is (C : int)"?
I don't see what is so special about struct:
class C
{
T t;
int i;
alias t this;
alias i this;
}
is (C == struct); //false
is (C == int); //false
is (C : struct); //true
is (C : int); //true
Or am I missing something obvious? Apologies in advance.
> I've already ran into an issue with them interfering with the
is(T : X) syntax
Isn't the point that they *do* interfere with such syntax?
--
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