http://d.puremagic.com/issues/show_bug.cgi?id=7897
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Walter Bright <[email protected]> 2012-04-20 11:52:56 PDT --- ======== // !!! getMember doesn't work here... HookupEngineFunction!( __traits( getMember, s, m ) )( pImports ); ======== This is a similar issue. s here is a variable, and getMember is expecting a type. Rewriting as: HookupEngineFunction!( __traits( getMember, typeof(s), m ) )( pImports ); gets past that. But then we're back to the previous issue, no 'this' pointer at compile time. This is not a compiler bug, either. I suspect what you are doing is trying to do C++ "pointers to members". Perhaps this will help: http://www.drdobbs.com/blogs/cpp/231600610 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
