[Issue 6501] import inside of eponymous template does not work correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 16 06:49:06 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6501
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kennytm at gmail.com
Version|unspecified |D2
--- Comment #1 from kennytm at gmail.com 2011-08-16 06:49:05 PDT ---
This is because the template has more than one member. Those symbols imported
from std.metastrings can now be accessed from the template, e.g.
--------------
pragma(msg, eponymous!"message".Format);
// prints "template Format(A...)"
pragma(msg, eponymous!"message".eponymous);
// prints "message"
--------------
Perhaps this is by-design.
--
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