Xref: utzoo comp.lang.c:15506 comp.lang.c++:2424 Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!Urd!newsuser From: newsuser@LTH.Se (LTH network news server) Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Would *you* get caught by this one? Keywords: Assignops Message-ID: <1989Jan13.085902.2057@LTH.Se> Date: 13 Jan 89 07:59:01 GMT References: <139@mole-end.UUCP> Reply-To: dag@Control.LTH.Se (Dag Bruck) Organization: Dept. of Automatic Control, Lund Inst. of Technology, Sweden Lines: 24 In article <139@mole-end.UUCP> mat@mole-end.UUCP (Mark A Terribile) writes: > > When is a *= b not the same as a = a * b ? For example, if you have: #define b x + y then: a *= b <=> a *= (x + y) a = a * b <=> a = (a * x) + y I strongly recommend the following book: Andrew Koenig: ``C Traps and Pitfalls'', Addison-Wesley Publishing Company, 1989. ISBN 0-201-17928-8. Dag Bruck -- Department of Automatic Control Internet: dag@control.lth.se Lund Institute of Technology P. O. Box 118 Phone: +46 46-108779 S-221 00 Lund, SWEDEN Fax: +46 46-138118