Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!munnari.oz.au!mullauna!fraser From: fraser@mullauna.cs.mu.OZ.AU (Fraser Wilson) Newsgroups: comp.lang.c Subject: Re: Assignment Ops and Side Effects Message-ID: Date: 9 Apr 91 03:58:48 GMT Article-I.D.: mullauna.fraser.671169528 References: <1991Apr5.012413.24124@athena.mit.edu> <1991Apr5.234636.22610@csrd.uiuc.edu> <18324@crdgw1.crd.ge.com> <15765@smoke.brl.mil> Sender: news@cs.mu.oz.au Distribution: aus Lines: 12 gwyn@smoke.brl.mil (Doug Gwyn) writes: >In article <18324@crdgw1.crd.ge.com> volpe@camelback.crd.ge.com (Christopher R Volpe) writes: >>The result of "c=1" in an expression context should be promoted to int. >Not if it's the operand of sizeof; that would make sizeof rather useless. No, it makes performing an assignment while doing a sizeof rather useless. Requiring that an expression is promoted to int UNLESS it happens to be in a sizeof seems unduly complicated. IMHO. Fraser.