Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mtuxo!mtune!rutgers!princeton!phoenix!asjoshi From: asjoshi@phoenix.UUCP Newsgroups: comp.lang.c Subject: Question on structures Message-ID: <1025@phoenix.Princeton.EDU> Date: Fri, 30-Oct-87 12:44:39 EST Article-I.D.: phoenix.1025 Posted: Fri Oct 30 12:44:39 1987 Date-Received: Sun, 1-Nov-87 08:38:05 EST Reply-To: asjoshi@phoenix.UUCP (Amit S. Joshi) Organization: Princeton Univ. Computing and Information Technology Lines: 22 Keywords: Sturctures records Summary: Is there a contruction like pascal 'with' Hi, I have a question on structures. It is as follows: I have gotten really tired of typing things like a.b.c.d etc to refer to elements of a structure. I remember that pascal provided me with a 'with' construction which allowed me to say something like "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. I might be missing something obvious, I wonder if somebody could help me ?. I know I could of course make a local copy in the program of every variable in the structures and then use the local copy but that seems inefficient and would be quite unclear. Thanks, -- Amit Joshi | BITNET : Q3696@PUCC.BITNET | USENET : ...seismo!princeton!phoenix!asjoshi "There's a pleasure in being mad ...which none but madmen know!" St.Dryden