Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!ucbvax!cartan!brahms!ballou From: ballou@brahms (Kenneth R. Ballou) Newsgroups: comp.lang.c Subject: Re: structure element offsets Message-ID: <526@cartan.Berkeley.EDU> Date: Tue, 9-Dec-86 16:31:00 EST Article-I.D.: cartan.526 Posted: Tue Dec 9 16:31:00 1986 Date-Received: Wed, 10-Dec-86 04:18:24 EST References: <1096@spice.cs.cmu.edu> <768@nike.UUCP> Sender: daemon@cartan.Berkeley.EDU Reply-To: ballou@brahms (Kenneth R. Ballou) Organization: Math Dept. UC Berkeley Lines: 18 In article <736@dg_rtp.UUCP> throopw@dg_rtp.UUCP (Wayne Throop) writes: >> C has been defined such that all members-of-structures share the >> same name-space. >You're wrong, you know. Members of structures do NOT share the same >namespace in C, no more than =+ is an operator in C. Let us chant >together, from Harbison and Steele, page 107: [an appropriate incantation has been deleted] >Kernighan and Ritchie have similar things to say, but I don't (GASP) >have my K&R to hand just now to find what they are, For shame! Actually, this is not true. In K&R C structure members all belong to the same namespace. The separation of namespaces for each structure/union is a (thoroughly welcome) later enhancement. -------- Kenneth R. Ballou ARPA: ballou@brahms.berkeley.edu Department of Mathematics UUCP: ...!ucbvax!brahms!ballou University of California Berkeley, California 94720