bluesky idea: __attribute__ (netorder)

David S. Miller davem@dm.cobaltmicro.com
Fri Sep 4 21:38:00 GMT 1998


   Date: Fri, 4 Sep 1998 16:34:01 -0700
   From: mrs@wrs.com (Mike Stump)

   > How hard would __attribute(__ (netorder) be to implement?

   I think it would be better to encapsulate network addresses with an
   object (C++).  You already get full type safety with a real object,
   and it is comptible (with a recompile) with longer addresses or
   different styles of addresses.

Consider code bases where c++ is not an option.  For them, such an
attribute could prove very useful.

Later,
David S. Miller
davem@dm.cobaltmicro.com



More information about the Gcc mailing list