From: sparhawk AT eunet DOT at (Gerhard Gruber) Newsgroups: comp.os.msdos.djgpp Subject: Re: how do I pass more than one value out of a function??? Date: Mon, 22 Jun 1998 21:17:08 GMT Organization: Customer of EUnet Austria Lines: 25 Message-ID: <3597738b.42145721@news.Austria.EU.net> References: <358D618A DOT 150C3E78 AT alcyone DOT com> NNTP-Posting-Host: e032.dynamic.vienna.at.eu.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Destination: Erik Max Francis From: Gruber Gerhard Group: comp.os.msdos.djgpp Date: Sun, 21 Jun 1998 12:39:54 -0700: >References in C++ were added to facilitate operator overloading, and >became a standard part of the language. But under normal circumstances >they should be used exceptionally sparingly (except when passing const >references). Why? I mean, there is logically (and technically) no difference between passing a pointer and changing the values pr passing a reference and changing values. I rarely use references because I don't like it but I would be interested in knowing what disadvantages this would have. I also encountered a function where I detected that using references was the only way to solve my problem. -- Bye, Gerhard email: sparhawk AT eunet DOT at g DOT gruber AT sis DOT co DOT at Spelling corrections are appreciated.