Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!rlgvax!cvl!umcp-cs!chris
From: chris@umcp-cs.UUCP
Newsgroups: net.lang.c
Subject: Re: 'struct' parameters
Message-ID: <5357@umcp-cs.UUCP>
Date: Wed, 22-Feb-84 04:48:14 EST
Article-I.D.: umcp-cs.5357
Posted: Wed Feb 22 04:48:14 1984
Date-Received: Thu, 23-Feb-84 04:30:54 EST
References: <4033@edai.UUCP>, <5317@umcp-cs.UUCP> <1037@cwruecmp.UUCP>
Organization: Univ. of Maryland, Computer Science Dept.
Lines: 24

*Sigh*...

	From: decot@cwruecmp.UUCP (Dave Decot)

	Chris Torek says:

	    ...writing

		struct { int i, j, k; } foo = { 1, 2, 3 };

		main () { printf ("%d %d %d\n", foo); }

	    is just plain illegal.
    
	This code is NOT illegal, nor is it illegal to pass unions.

It is *syntactically* correct.  It is *semantically* wrong.  That,
as far as I am concerned, makes it illegal.  I also consider passing
0 instead of (type *)0 as a paramter to be illegal.  Perhaps "bogus"
is a better word.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris.umcp-cs@CSNet-Relay