| delorie.com/archives/browse.cgi | search |
| From: | Christopher Croughton <crough45 AT amc DOT de> |
| Subject: | Re: funny re user-defined ++ and -- operators |
| To: | morphine AT hops DOT cs DOT jhu DOT edu (Michael Phelps) |
| Date: | Fri, 11 Apr 1997 16:42:53 +0100 |
| Cc: | crough45 AT amc DOT de, max AT alcyone DOT com, djgpp AT delorie DOT com |
| In-Reply-To: | <Pine.GSO.3.95.970411105923.21960A-100000@hops.cs.jhu.edu> from "Michael Phelps" at Apr 11, 97 04:01:28 pm |
| Mime-Version: | 1.0 |
| Message-Id: | <97Apr11.173957gmt+0100.21895@internet01.amc.de> |
Michael Phelps wrote:
> In C++ you can have a parameter that is basically declared to be ignored.
> Simply declare the data type without a corresponding variable:
> double example_function(double x, int, int, long y)
> {
> // Function body
> }
Oh, that's useful. Especially for state machines with arrays of
functions, some of which want to ignore some arguments...
> Morphine
Pretty picture. I never knew the Morphine molecule looked like
a motorbike <g>. There's bound to be some significance in that...
Chris
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |