🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #103

some small questions

#103
From: Glen Ditchfield
Date: Tue, 18 Mar 1986 16:45
14 lines
1367 bytes
Can some kind soul tell me how "real" C++ handles these problems? We use a
buggy pre-release here, so I can't just try them.
- Does C++ make some distinction between ++x and x++, where x is of a user-
  defined class? If operator++() is written to return the incremented value,
  C++ could handle x++ by saving x, calling ++, and passing on the saved value.
- Does "void fred( gorf& const g)" make syntactic sense? What I am trying to
  say is that fred uses a reference to the actual parameter, _but_can_not_
  _alter_it_. This is like the CONST parameter attribute that some Pascal
  dialects support.
These questions are not to be interpreted as suggestions for extensions to the
language; I would hate to see C++ crushed by "creeping featurism".
-----
None of the opinions above are the product of more than 10 second of thought.
Technical Details
Message-ID: <7916@watrose.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!watnot!watrose!gjditchfield

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watrose.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!watnot!watrose!gjditchfield
From: gjditchfield@watrose.UUCP (Glen Ditchfield)
Newsgroups: net.lang.c++
Subject: some small questions
Message-ID: <7916@watrose.UUCP>
Date: Tue, 18-Mar-86 11:45:20 EST
Article-I.D.: watrose.7916
Posted: Tue Mar 18 11:45:20 1986
Date-Received: Wed, 19-Mar-86 01:30:29 EST
Distribution: net
Organization: U of Waterloo, Ontario
Lines: 14