Path: utzoo!censor!isgtec!robert From: robert@isgtec.uucp (Robert Osborne) Newsgroups: comp.lang.c Subject: Re: Assignment in test: OK? Message-ID: <637@isgtec.UUCP> Date: 11 Sep 90 12:34:51 GMT References: <1990Sep5.185451.25532@DRD.Com> Sender: news@isgtec.UUCP Reply-To: robert@isgtec.UUCP (Robert Osborne) Organization: ISG Technologies Inc. Mississauga Ont. Canada Lines: 22 In article <1990Sep5.185451.25532@DRD.Com> mark@drd.Com (Mark Lawrence) writes: > [about Saber C warnings for the code...] > if( (status = FuncCall(foo, bar, gex)) < SomeValue) > GripeAboutIt(); > Does this code yield the warning: Assignment in conditional 'if' expression. I'm not sure of you exact syntax but I've run similiar code through Saber and it didn't even blink. We have Saber C here and I've only ever seen this warning on code that had the form if(x = func(...)). If the warning is not as above Saber's complaining about something else. Disclaimer and unabashed recommendation: I have no association with Saber Software Inc., other than as a very happy user. Warning: The use of Saber C is habit forming and getting a Saber C demo tape has been known to cause purchase soon after. I heartily recommend this product. (ISG has several licences so they probably agree with me :-) Rob. -- Robert A. Osborne ...uunet!utai!lsuc!isgtec!robert or robert@isgtec.uucp