<div dir="ltr">2013/4/10 Dicebot <span dir="ltr"><<a href="mailto:m.strashun@gmail.com" target="_blank">m.strashun@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Wednesday, 10 April 2013 at 08:41:35 UTC, kenji hara wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Sorry I have no answer for the issue. That is still unknown area to me...<br>
<br>
Kenji Hara<br>
</blockquote>
<br></div>
Thanks for replying! Really appreciated.<br>
<br>
May be you can give me a small insight on dmd internal data representation then? I think I have got the issue and know what needs to be done, but can't find reasonably short solution within existing code structure.<br>

</blockquote></div><br></div><div class="gmail_extra" style><div class="gmail_extra">OK. I don't understand the issue enough, but I'd like to help you.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
- TemplateInstance::tinst may represent the enclosing template instance that 'this' instance is instantiated. It is set in TemplateInstance::semantic(|2|3) for its member's semantic process.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">- TemplateInstance::enclosing may represent the parent of nested template instance. If a template is instantiated in function scope with implicit context, it points the function. It is set in TemplateInstance::hasNestedArgs.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">- Module::importedFrom may represents the "root module" of import chain. it points one of the module that listed in command line.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Good luck.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Kenji Hara<br></div></div></div>