<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-01-26 21:46 GMT+01:00 Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 26 January 2017 at 22:32, Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@<wbr>gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-01-26 21:20 GMT+01:00 Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br><div dir="ltr">+1<div><br></div><div>with C i was always wondering, why C standard does not provides </div><div>an unsigned integer type which size strictly corresponds to size of pointer type, e.g.</div><div>sizeof(some standard uint) == sizeof(void*)</div><div>that would solve so many problems and make thing so much easier..</div><div><br></div></div></blockquote><div><br></div><div>In C99, there is intptr_t (and all the accompanying MACROS for printf/scanf formats, maximum value etc...)<br><br></div></div></div></div></blockquote><div>i guess, you meant <span class="m_1389229065030335920gmail-t-lc" style="color:rgb(0,0,0);font-size:12.8px;font-family:dejavusansmono,"dejavu sans mono",courier,monospace"><b class="m_1389229065030335920gmail-selflink">uintptr_t</b></span><span style="color:rgb(0,0,0);font-family:dejavusans,"dejavu sans",arial,sans-serif;font-size:12.8px"> then</span></div><div>but it was introduced only in C99.. and compilers started supporting C99 years later..</div><div>but the problem is that AFAIK, first lines of Squeak were written around '96 </div><div>and people had to deal with what they had..</div><div><br></div><div>And then there's a people, whose main argument for using C is 'its portable'.. Hell yes, except it wasn't when portable things, like</div><div>our VM were written first :)</div><div><br></div></div></div></div></blockquote><div><br></div><div>If not all compilers support C99, most support at least uintptr_t <br></div><div>But because we are really caring of obsolete configurations, we have introduced a usqIntptr_t...<br></div><div><br></div><div>However, an oop is not necessarily a usqIntptr_t, for example if we have 32bits image on 64bits VM, which might still be an interesting case.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div><div><br></div>-- <br><div class="m_1389229065030335920gmail_signature">Best regards,<br>Igor Stasenko.</div>
</div></div>
<br></blockquote></div><br></div></div>