Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Union type conversions
Message-ID: <1988Jun16.182158.2424@utzoo.uucp>
Organization: U of Toronto Zoology
References: <5754@bloom-beacon.MIT.EDU>
Date: Thu, 16 Jun 88 18:21:58 GMT

> So what it boils down to, is whether casting into a union type is
> legal and portable...

No.  You have to use the temporary union variable and assign to one of
its members, as in your second example.
-- 
Man is the best computer we can      |  Henry Spencer @ U of Toronto Zoology
put aboard a spacecraft. --Von Braun | {ihnp4,decvax,uunet!mnetor}!utzoo!henry