Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site drivax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!amdahl!drivax!alan From: alan@drivax.UUCP (Alan Fargusson) Newsgroups: net.lang.c Subject: ANSII C structures and unions Message-ID: <126@drivax.UUCP> Date: Mon, 22-Apr-85 19:26:08 EST Article-I.D.: drivax.126 Posted: Mon Apr 22 19:26:08 1985 Date-Received: Thu, 25-Apr-85 07:59:55 EST Distribution: net Organization: Digital Research, Monterey, CA Lines: 23 I noticed that the standard has defined structures and unions in such a way as to break most of my code. I don't like this very much. I only got a copy of the standard a couple of weeks ago, and have been playing with the grammer that someone posted to the net. It didn't take me long to find anything that includes stdio.h fails because of the structure problem. The way I read the standard a structure must be declared as a template with a tag before being used to declare a variable. For example: struct pig { int a; int b; }; struct pig hog; Not like this: struct { int a; int b; } hog; Has this been hashed over before? If it was I missed it. -- Alan Fargusson. { ihnp4, sftig, amdahl, ucscc, ucbvax!unisoft }!drivax!alan