Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.alt.folklore.computer > #44569
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Newsgroups | de.alt.folklore.computer |
| Subject | Re: Pascal |
| Date | 2024-05-07 11:16 +0000 |
| Organization | Stefan Ram |
| Message-ID | <C++2-20240507121555@ram.dialup.fu-berlin.de> (permalink) |
| References | (16 earlier) <slrnv3i6dc.1b9so.hjp-usenet4@trintignant.hjp.at> <v1cfbe$47m0$1@solani.org> <l9tvs7Fj03pU1@mid.individual.net> <inout-20240507112427@ram.dialup.fu-berlin.de> <l9ug6lFlb88U1@mid.individual.net> |
Hermann Riemann <nospam.ng@hermann-riemann.de> schrieb oder zitierte:
>Am 07.05.24 um 12:25 schrieb Stefan Ram:
>>inc: (inout v: int) = v++;
>void inc(int &v){ v++;}
Ja. Der Vorteil ist, daß man in C++2 sagt, was man will (zum
Beispiel "Parameter für Ein- und Ausgabe") und C++2 dann
selber entscheidet, welche Art von Parameter (zum Beispiel
Referenz, Zeiger, Konstante, etc.) dafür am besten ist.
Back to de.alt.folklore.computer | Previous | Next | Find similar | Unroll thread
csiph-web