Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!apctrc!drd!mark From: mark@DRD.Com (Mark Lawrence) Newsgroups: comp.lang.c Subject: Assignment in test: OK? Message-ID: <1990Sep5.185451.25532@DRD.Com> Date: 5 Sep 90 18:54:51 GMT Reply-To: mark@drd.Com (Mark Lawrence) Organization: DRD Corporation, Tulsa, OK Lines: 11 I have a proclivity to code like the following: if( (status = FuncCall(foo, bar, gex)) < SomeValue) GripeAboutIt(); or variations thereof. When I run saber on such code, it babbles a warning about the assignment in the test. Being the gullible naif I am, I worry when a heavy duty tool like Saber complains about something. Is this practice considered kosher by those in the know? Why or why not? -- mark@DRD.Com uunet!apctrc!drd!mark$B!J%^!<%/!!!&%m!<%l%s%9!K(B