delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/09/04:55:34

Sender: crough45 AT amc DOT de
Date: Wed, 9 Apr 1997 09:41:05 +0100
From: Chris Croughton <crough45 AT amc DOT de>
Mime-Version: 1.0
To: alaric AT abwillms DOT demon DOT co DOT uk
Cc: djgpp AT delorie DOT com
Subject: Re: funny re user-defined ++ and -- operators
Message-Id: <97Apr9.103812gmt+0100.21897@internet01.amc.de>

Alaric B. Williams wrote: 

>>operator++(int) is postfix
>>operator++() is prefix
>
>The ugliest syntax hack ever to see the light of day :-(

Not quite, I think, but close.  However, it's certainly one of
the most counter-intuitive ones - the first looks prefix, with
the parameter after the operator, and the second looks postfix
with the variable obviously before (as in x.operator++()).

On the same subject, is there a decent C++ book which comes 
close to the current draft standard?  The ones I've seen seem
to be several years out of date.  The only recent standard I've 
come across is that on the Web at http://www.setech.com/x3.html
which is the current discussion document, but that's reference
and doesn't really discuss it in an easily understood way (it
took me over an hour to find the 'delete' operator, for instance).

>(Windows for Early Warning and Defence User's manual P26)

Oh yes, I looked at your site.  Do you have any more of the 
manual than the excerpts on your page?  I put in a link from
my Web page (http://www.keris.demon.co.uk/), and at least
one person has followed it and wants a copy of WfEWD...

Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019