Unions

Chris Torek chris at mimsy.UUCP
Sat Oct 22 07:41:38 AEST 1988


In article <976 at l.cc.purdue.edu> cik at l.cc.purdue.edu (Herman Rubin) notes
that unions can be used to escape the type rules when necessary (glad
someone else said it so I did not have to :-) ), and adds:

>One complaint that I have about the C compilers I have used is that they
>do not support register unions.

Nor register structures, for that matter; this is silly.  The compiler
will return a four-byte integer in a register, so why will it not return
a four-byte structure in a register?

There *are* compilers that do it right.  (Does GCC?)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list