From kdevelop-devel Thu Jul 19 13:13:18 2007 From: Roberto Raggi Date: Thu, 19 Jul 2007 13:13:18 +0000 To: kdevelop-devel Subject: Re: kdevplatform krazy Message-Id: <014DA6D6-2774-4178-9587-BDD5D419CEE5 () kdevelop ! org> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=118485097432309 Hi! Il giorno 19/lug/07, alle ore 14:41, Kris Wong ha scritto: > True, but that sort of thing is generally considered bad practice > and I > believe is undefined according to the c++ standard. You are right, trust me the evaluation of the assignment operator is very well defined in the standard. > though, it is generally common practice to return a reference to the > item. you should emulate the assignment operator for primitive types (like char, int,..) by returing a reference. You can use void if you don't care about the return type (for instance when you want to disable the assignment operator). ciao tobe _______________________________________________ KDevelop-devel mailing list KDevelop-devel@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel