<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 28, 2009, at 10:02 AM, Fariborz Jahanian wrote:</div><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font></blockquote><blockquote type="cite">I intentionally did not emit field offsets for base classes because:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. They're somewhat different from regular fields<br></blockquote><blockquote type="cite">2. This makes the FieldOffsets mean something different in C++ vs C.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have a patch that implements type layout for non-virtual base classes and I plan to land it later today.<br></blockquote><br>I thought that this would change. I hope also that I would be able to get the offset of each base laid out in the current class<br>by a suitable API after your changes.<br><br></div></blockquote><div><br></div>Yes, we definitely need that for derived-to-base and base-to-derived casts :)</div><div><br></div><div>Thanks!</div><div><br></div><div>Anders</div><div><br></div><div><br></div></body></html>