[M3devel] Modula-3 bitfields
Dragiša Durić
dragisha at m3w.org
Fri Aug 24 19:58:08 CEST 2012
What mental model?
We have network order. Everything network is bit streams, from left to right, most significant bits/bytes. No need for mental model here, any communication oriented ISO, ETSI, ITU standard…
I don't understand why you insist on C syntax here. C has its own problems and reasons why it's at war with most things mental. Please refer to my initial example instead.
--
Divided by a common language
Dragiša Durić
dragisha at m3w.org
On Aug 24, 2012, at 7:48 PM, Jay K wrote:
> printf("%X %X\n", c.u.s.a, c.u.s.b);
> What do people expect?
> Do people really have a mental model as to what the layout rules are for bitfields?
> Are they obvious enough that every C compiler writer has actually implemented them the same and they become in a sense portable?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120824/078621e6/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120824/078621e6/attachment-0002.sig>
More information about the M3devel
mailing list