[Issue 3346] classinfo behaves like no other D entity
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 26 12:25:00 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3346
--- Comment #1 from Andrei Alexandrescu <andrei at metalanguage.com> 2009-09-26 12:24:59 PDT ---
This code does not compile:
class A {
void fun() {
auto ci = classinfo;
}
}
But this does:
class A {
void fun() {
auto ci = this.classinfo;
}
}
And this does too:
class A {
void fun() {
auto ci = A.classinfo;
}
}
No other entity in D has these weird lookup rules.
--
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