Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!super.upenn.edu!eecae!nancy!umix!uunet!pyrdc!gmu90x!dolqci!vrdxhq!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: Question on structures Message-ID: <6639@brl-smoke.ARPA> Date: Sun, 1-Nov-87 19:26:45 EST Article-I.D.: brl-smok.6639 Posted: Sun Nov 1 19:26:45 1987 Date-Received: Tue, 3-Nov-87 04:08:37 EST References: <1025@phoenix.Princeton.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 Keywords: Sturctures records In article <1025@phoenix.Princeton.EDU> asjoshi@phoenix.UUCP (Amit S. Joshi) writes: > "with a.b.c {now refering to d really means use a.b.c.d } ..." >I was wondering if there is some similar contruct in C. No, C doesn't have anything quite like "with". Partly this is because most interesting code accesses several structures, and their members can have the same names, so "with" would be ambiguous. However, you can obtain some relief by using struct pointers: register struct foo *p = &a.b.c; ... access(p->d); ...