<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Why wouldn't it be portable? What endiannes has to do with bit strings?<div><br></div><div>I don't think it is wrong to make it left-to-right-until-spent… As it's implementation dependent… ok… Why would not our implementation be left-to-….? :)</div><div><br></div><div>I think it's totally reasonable to expect from implementation exactly what I am expecting here and now.</div><div><br></div><div>As for C… I know several ways to implement this… And good ones. What I would like is to have cm3 doing it in obvious, intuitive way.</div><div><br></div><div>TIA<br><div><br><div><div>On Jan 19, 2012, at 5:28 AM, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><pre> > packing data into record about packing bits left-right-until-spent?</pre><br>It is not portable.<br>In particular, there is endianness variation.<br>The C spec leaves things up to implementation.<br><br>If you can, I recommend copying the data from C to a more portable less dense Modula-3 representation.<br>Like what is now done throughout m3core/libm3 -- i.e. we don't interface with C at all through bitfields, nor do we try to line up with struct stat or any other struct, roughly speaking.<br>(Maybe still a few, like struct linger).</span></span></blockquote></div><br></div></div></body></html>