🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3

Declaring *this const

#3
From: Alexandre Oliva
Date: Wed, 28 Oct 1992 18:09
9 lines
733 bytes
Is there any way to declare, in a member function, that the object it
will operate on, that is, *this, is const?

Alexandre Oliva
oliva@dcc.unicamp.br
Depto de Ciencia da Computacao
DCC - IMECC - UNICAMP
Campinas SP Brazil
Technical Details
Message-ID: <9210281609.AA02775@dcc.unicamp.br>
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dcc.unicamp.br!oliva

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dcc.unicamp.br!oliva
From: oliva@dcc.unicamp.br (Alexandre Oliva)
Subject: Declaring *this const
Message-ID: <9210281609.AA02775@dcc.unicamp.br>
Sender: daemon@cis.ohio-state.edu
Organization: The Ohio State University Department of Computer and Information Science
Date: Wed, 28 Oct 1992 18:09:23 GMT
Lines: 9