<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 20, 2009, at 7:06 PM, Zhongxing Xu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#144FAE"><br></font></blockquote><blockquote type="cite">I think a better way is for Entity to be just a wrapper to a PointerUnion<br></blockquote><blockquote type="cite">(either pointer to "not crossing" Decl or pointer to an internal Entity<br></blockquote><blockquote type="cite">implementation).<br></blockquote><blockquote type="cite">That way comparing Entities is correct also for Decls that don't cross<br></blockquote><blockquote type="cite">translation units.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Does it make sense ?<br></blockquote><br>Yeah, that's a good solution.<br></div></blockquote><br></div><div>This is commited, and static functions get Entities now.</div><div><br></div><div>Thanks for the feedback Zhongxing!</div><div><br></div><div>-Argiris</div><div><br></div><div><br></div><br></body></html>