Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!panews!rchland.ibm.com!seurer+ From: seurer+@rchland.ibm.com (Bill Seurer) Newsgroups: comp.lang.modula2 Subject: Re: Op overloading/var. parms Message-ID: Date: 7 May 91 13:19:42 GMT References: <8015.280c0c0e@lhn.dsir.govt.nz> <1991Apr19.173651.9572@iitmax.iit.edu>, <8020.281425b4@lhn.dsir.govt.nz> <4c7263c91EAfQ1BW4G@rchland.ibm.com>, <8024.28252688@lhn.dsir.govt.nz> Organization: IBM Rochester, Mn Lines: 16 In-Reply-To: <8024.28252688@lhn.dsir.govt.nz> Excerpts from netnews.comp.lang.modula2: 6-May-91 Re: Op overloading/var. parms mdlcpgs@lhn.dsir.govt.nz (1100) > > "abcd" then 123 + 456 must =be123456, right? :-) > Dont get this. "123" + "456" would indeed equal "123456" > 123 + 456 = 579 "123" + "456" would indeed (if + were string concatentation) be "123456" but my example was the INTEGER 123 plus the INTEGER 456... The point was that concatenation is not the same as addition. It is just more obvious that it is "wrong" is you look at it from the other side (i.e., addition is the same as concatenation).. - Bill Seurer Programming Support IBM Rochester, MN Prodigy: CNSX71A Internet: seurer@rchland.vnet.ibm.com