Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!caip!ll-xn!mit-amt!mit-eddie!genrad!decvax!tektronix!orca!paulsc From: paulsc@orca.UUCP (Paul Scherf) Newsgroups: net.lang Subject: Re: null statements Message-ID: <2112@orca.UUCP> Date: Tue, 22-Jul-86 14:28:07 EDT Article-I.D.: orca.2112 Posted: Tue Jul 22 14:28:07 1986 Date-Received: Thu, 24-Jul-86 01:29:56 EDT References: <800015@ccvaxa> <463@opus.nbires.UUCP> <442@sunybcs.UUCP> Reply-To: paulsc@orca.UUCP (Paul Scherf) Organization: Tektronix, Wilsonville OR Lines: 20 In article <442@sunybcs.UUCP> colonel@sunybcs.UUCP (Col. G. L. Sicherman) writes: >> So to get the effect equivalent to "zero" out of the null statement, do we >> invent some sort of "positional notation" for statements?!?! > >Fine with me! I'd rather be able to write > > while ('\n' != getchar()) nothing; > >than > > while ('\n' != getchar()) /* do nothing */ ; You already can. Well, almost. while ('\n' != getchar()) continue; It works for do-while and for loops too. Paul Scherf, Tektronix, Box 1000, MS 61-028, Wilsonville, OR, USA tektronix!orca!paulsc