Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!rex!ames!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Need help with union trick: summary of replies Message-ID: <14836@smoke.brl.mil> Date: 13 Jan 91 02:29:47 GMT References: <28949@mimsy.umd.edu> <2885@cirrusl.UUCP> <1991Jan12.190021.16071@nntp-server.caltech.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 18 In article <1991Jan12.190021.16071@nntp-server.caltech.edu> gceych@juliet.caltech.edu writes: - struct { - variant_union { - unsigned char ch; - variant_struct { - unsigned one : 1; - unsigned two : 1; - ... - unsigned eig : 1; - } superfluous; - } superfluous2; - int i, j, k, x, y, z; - } mystructure; Oh, gross. If you use this highly nonstandard VMS C extension then you'll have to overhaul your code when you port it to a different environment. It is much better to simply not use such unnecessary vendor-specific extensions in the first place.