[Issue 12223] __traits(getMember,...) needed for aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 22 00:49:52 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12223
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-22 00:49:49 PST ---
That's a rather complicated example. Is the following what you're after?
-----
struct S
{
void foo() { }
}
void main()
{
alias f = S.foo;
S s;
__traits(getChild, s, f)(); // same as s.foo()
}
-----
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list