Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!news.iastate.edu!sharkey!amara!mcdaniel From: mcdaniel@adi.com (Tim McDaniel) Newsgroups: comp.lang.c Subject: Re: Assignment Ops and Side Effects Message-ID: Date: 10 Apr 91 16:58:28 GMT References: <18324@crdgw1.crd.ge.com> <15765@smoke.brl.mil> <18355@crdgw1.crd.ge.com> <15777@smoke.brl.mil> <18393@crdgw1.crd.ge.com> Sender: news@adi.COM Organization: Applied Dynamics International, Inc.; Ann Arbor, Michigan, USA Lines: 32 In-reply-to: volpe@camelback.crd.ge.com's message of 10 Apr 91 13:23:36 GMT In article <18393@crdgw1.crd.ge.com> volpe@camelback.crd.ge.com (Christopher R Volpe) quotes: > > 3.2.1.1: A char ... may be used in an expression wherever an int or > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > unsigned int may be used. If an int can represent all values of the > ^^^^^^^^^^^^^^^^^^^^^^^^^ > original type, the value is converted to an int.; otherwise, it is > converted to an unsigned int. These are called the integral > promotions. > > This appears to say that this conversion occurs in any expression > context, subject to explicit exceptions made elsewhere. See the first paragraph of section 3.2, "Conversions": Several operators convert operand values from one type to another automatically. This section specifies the result required from such an *implicit conversion* .... The list in 3.2.1.5 summarizes the conversions performed by most ordinary operators; it is supplemented as required by the discussion of each operator in 3.3. Section 3.2.1.5, "Usual Arithmetic Conversions" (ditto): Many binary operators that expect operands of arithmetic type cause conversions and yield result types in a similar way.... -- "Of course he has a knife. We all have knives. It's 1183, and we're all barbarians." Tim McDaniel Applied Dynamics Int'l.; Ann Arbor, Michigan, USA Internet: mcdaniel@adi.com UUCP: {uunet,sharkey}!amara!mcdaniel