[Issue 9971] eponymous function is not an lvalue
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 20 22:17:11 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9971
--- Comment #2 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2013-04-20 22:17:10 PDT ---
(In reply to comment #1)
> I think it does not work because &goo is address of raw template and dmd does
> not instantiate it, so you should use pointer to instantiated function. I am
> not sure this is bug (but it may be an enhancement request).
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
--
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