Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!dogie.macc.wisc.edu!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hp-pcd!hplsla!jima From: jima@hplsla.HP.COM (Jim Adcock) Newsgroups: comp.lang.c++ Subject: Re: coercion of x op= y verses x = x op y ??? Message-ID: <6590286@hplsla.HP.COM> Date: 9 Oct 89 17:21:51 GMT References: <6590279@hplsla.HP.COM> Organization: HP Lake Stevens, WA Lines: 9 >In the second case, you are either applying a "*=" operator to an Int (no >such operator defined), or to an int (which is generated by a function >call, which is not an lvalue). In which case, seems to me that coercion oerators should be considered to return a reference, so as to be legal in lvalue situations. Otherwise you can't use coercion operators for true polymorphism. Where is it defined whether coercion operators return values or lvalues? Is there anyway to declare which you'd like?