cvs.gedasymbols.org/archives/browse.cgi | search |
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: | <Pine DOT GSO DOT 3 DOT 96 DOT 980621015613 DOT 20672A-100000 AT oscar DOT eecs DOT uic DOT edu> <358D618A DOT 150C3E78 AT alcyone DOT com> |
NNTP-Posting-Host: | e032.dynamic.vienna.at.eu.net |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Destination: Erik Max Francis <max AT alcyone DOT com> 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |