<div dir="ltr">On Mon, Oct 14, 2013 at 4:36 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im"><div class="gmail_extra"><span style="font-size:13px;font-family:arial,sans-serif">+struct A4 {</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">+       int a;</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">+       A4() : a(0xf00000a4) {}</span><br></div><div class="gmail_extra"><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div></div><div class="gmail_extra"><span style="font-size:13px;font-family:arial,sans-serif">Out of curiosity, is there a hidden meaning for these hex constants? They seem to have some sort of pattern.</span></div>
</div></blockquote><div><br></div><div>Note that the last couple of hex digits are the name of the class containing the member. This makes it easy to see how a class was laid out by dumping the contents of an instance of it.</div>
</div></div></div>