[Issue 11946] "need 'this' to access member" when passing field to template parameter
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Jul  6 23:12:00 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=11946
--- Comment #41 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Kenji Hara from comment #27)
> As a technical talk, in current semantic analysis system, the "context-ness"
> of a function - whether a function really needs a context or not - should be
> determined without its body analysis. As far as I see, current dmd code
> relies on the assumption.
But D already has the notion of doing a "local instantiation" of a global
template, if an alias parameter is a local symbol - see hasNestedArgs().
--
    
    
More information about the Digitalmars-d-bugs
mailing list