Re: New draft version of o65 file format

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2005-04-13 10:34:06

On Tue, Apr 12, 2005 at 12:07:10AM -0400, Greg King wrote:
> If the second named member of a union is longer than the first one,
> then what happens to the extra space?  Is it indeterminate?

As far as the standard is concerned, the behaviour is undefined if you write
to one member of a union, and read from another. As a consequence, it doesn't
matter what happens to the additional space, since reading from it will given
undefined behaviour anyway.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.