On Wed, Feb 21, 2001 at 09:56:08AM -0700, Warner Losh wrote:
> There is some verbage in the structure layout part of the standard
> that makes this a logical conclusion.
>
> However, it is overly tricky code. But then again to do the generic
> sort of thing you want to do, you have to resort to C macros, or other
> gross things to make it generic. The question becomes how do you do
> that in the least gross way...
Someone will say ``Use C++'' here. Then I will ignite a copy of `The
Annotated C++ Reference Manual' and hit them with it.
I think using unions is actually out of the question if you want to be
able to allow new `types' after compile time.
When you say ``resort to C macros,'' do you mean macros to hide the
`type punning', or do you have something else in mind?
Cheers,
--
Jacques Vidrine / [EMAIL PROTECTED] / [EMAIL PROTECTED] / [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message