[Issue 9971] eponymous function is not an lvalue
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 20 22:32:40 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9971
--- Comment #3 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-04-20 22:32:39 PDT ---
(In reply to comment #2)
> It is inconsistent with the way templated structs and classes work:
>
> void main() {
> alias T!(int) t1;
> }
>
> struct T(j) {
> pragma(msg, "a struct ",T); // T is the struct
> }
> pragma(msg, "a template ", T); // T is the template
Sorry I don't see your point. Note, that second message is printed irrespective
to instantiation and none of the messages is sensitive to what T is really is.
void main() {
alias T!(int) t1;
}
struct T(j) {
//pragma(msg, "a struct ",T); // T is the struct
pragma(msg, T.stringof);
}
//pragma(msg, "a template ", T); // T is the template
pragma(msg, T.stringof);
--
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