Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!topaz!nike!ucbcad!ucbvax!ucdavis!deneb!u557676751ea From: u557676751ea@deneb.UUCP Newsgroups: net.lang.c Subject: Re: WITH statement in C Message-ID: <423@ucdavis.UUCP> Date: Sat, 12-Jul-86 14:17:33 EDT Article-I.D.: ucdavis.423 Posted: Sat Jul 12 14:17:33 1986 Date-Received: Sat, 12-Jul-86 23:00:06 EDT References: <1003@zog.cs.cmu.edu> Organization: University of California, Davis Lines: 41 > > I dislike Pascal as much as the next C hacker, but one feature that could > be useful to add to C is something akin to the Pascal "WITH" statement. Since > I haven't seen or read X3J11, I don't know if any new features are being added > to the language. By using such a construct, one avoids long statements when > using deeply nested structures/unions or the kludgy method of using defines. > I would mail this to a committee member, but I don't the address of any and > I figure one of them will probably read this. In general, I don't advocate > adding new features to a language (after all, eventually it just turns into > creeping featurism :-), but some improvements are O.K. I know everybody > seems that they want some pet construct/function/option in the ANSI standard, > so I'm no better than anyone else. I'm only curious as to why nobody has > mentioned the desire for this construct (or bitched about its abscence :-) > > Daryl Clevenger > > P.S. > I am not a frustrated Pascal user either, I detest the language. > Also, no complete signature line, since I have no idea what the path > to my site is through UUCP or anything but direct ARPA mail. How about this? { someptr *foo; foo = &(incredibly->long->and->complicated->nested->structure); foo->bar = 0; foo->bar2 = x; . . . } - Mark Nagel ucdavis!u557676751ea@ucbvax.berkeley.edu (ARPA) ...!{dual|lll-crg|ucbvax}!ucdavis!deneb!u557676751ea (UUCP)