Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!piring.cwi.nl!guido From: guido@piring.cwi.nl (Guido van Rossum) Newsgroups: comp.lang.c++ Subject: Re^2: named return values Message-ID: <8323@boring.cwi.nl> Date: 9 Aug 89 08:25:52 GMT References: <1826@cmx.npac.syr.edu> <26302@shemp.CS.UCLA.EDU> <6444@columbia.edu> <26314@shemp.CS.UCLA.EDU> Sender: news@cwi.nl Lines: 17 rjc@maui.cs.ucla.edu (Robert Collins) writes: >>m1.plus(matrix(m2).times(2)).plus(m3) >That is REALLY ugly. I am using C++ so I don't have to write >code like that! Oh come on. With assignment operators you can get this, which is efficient and clear enough: matrix tmp = m2; tmp *= 2; m1 += tmp; m1 += m3; -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@cwi.nl or mcvax!guido or guido%cwi.nl@uunet.uu.net ...and let's keep signature size to a minimum...