<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 3, 2011, at 2:45 AM, Axel Naumann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Argyrios,<br><br>Argyrios Kyrtzidis wrote on 02/02/2011 07:17 PM:<br><blockquote type="cite"><blockquote type="cite">Attached patch creates a last resort, dynamic lookup: if that hook<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(implemented by an abstract interface) has been provided, it will get<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">its chance to look up a symbol but only if all the other language<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">foreseen lookups have failed (i.e. with lowest precedence).<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This can have other uses as well, e.g. resolving names even if the header is missing.<br></blockquote><blockquote type="cite">This currently will only work for id-expressions, I'm assuming you are planning to handle failed namespace lookups, typename lookups, etc. ?<br></blockquote><br>Err, we don't have a use case for those (yet). Does that mean unless we<br>implement namespace, typename etc you don't want to see the patch in? Or<br>is it okay with you as is? The others can still be added to<br>DynamicLookup later, by whoever needs it.<br></div></blockquote></div><div><br></div><div>Well, I would rather see this patch handling the general case (e.g., in Sema::LookupName) rather than just id-expressions, since we don't want to have to augment *every* lookup in Sema with a similar "if (DynamicLookup && DynamicLookup->PerformLookup(R, S))" statement. Did you try that and run into problems?</div><br><div><span class="Apple-tab-span" style="white-space:pre">     </span>- Doug</div></body></html>