This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bluesky idea: __attribute__ (netorder)
- To: mrs at wrs dot com
- Subject: Re: bluesky idea: __attribute__ (netorder)
- From: "David S. Miller" <davem at dm dot cobaltmicro dot com>
- Date: Fri, 4 Sep 1998 21:35:51 -0700
- CC: egcs at cygnus dot com, weejock at ferret dot lmh dot ox dot ac dot uk
- References: <199809042334.QAA13921@kankakee.wrs.com>
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