Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!jade!zircon!c8-rah From: c8-rah@zircon.berkeley.edu (CS 8 Readers) Newsgroups: net.lang.c Subject: Re: is a void function invocation an expression or a statement? Message-ID: <1095@jade.BERKELEY.EDU> Date: Wed, 13-Aug-86 14:27:53 EDT Article-I.D.: jade.1095 Posted: Wed Aug 13 14:27:53 1986 Date-Received: Thu, 14-Aug-86 22:03:40 EDT References: <2976@brl-smoke.ARPA> Sender: usenet@jade.BERKELEY.EDU Reply-To: c8-rah@zircon.berkeley.edu.UUCP (Max Schireson) Organization: University of California, Berkeley Lines: 12 I think that I agree that void should be a real data type, but making sizeof(void) would create problems. Since sizeof(void) = 0, sizeof(void[size) = 0 regardless of size. Since one could declare an arbitrarily long array of void, sizeof(void *) would have to be infinite, which does not seem possible. My proposed solution, which may not be any good either, is making void a real type, and sizeof(void) equal to the sizeof a union of char,int,etc. i.e. sizeof(double). If anyone has a better idea, or a good reason not to make void a real data type, I would be interested in hearing it. -Max Schireson