Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!usc!jarthur!bridge2!3comvax!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: Need help with union trick: summary of replies Message-ID: <2885@cirrusl.UUCP> Date: 11 Jan 91 23:30:33 GMT References: <1991Jan4.192645.7094@lavaca.uh.edu> <4977:Jan422:17:0191@kramden.acf.nyu.edu> <28949@mimsy.umd.edu> Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 9 I sort of like calling the union substructure by tiny names like x, y, z etc. Then references become struct_name.x.field_name, and the ".x." is almost not noticeable. The idea is to use a small meaningless name (sort of using i, j, k as loop counters) so the meaningfullness (to coin a noun) lies entirely in the name of the structure and the name of the field. -- History never | Rahul Dhesi becomes obsolete. | UUCP: oliveb!cirrusl!dhesi