🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #668

Re: Can't assign 'this' in a constructor

#668
From: Doug Schmidt
Date: Sat, 02 Dec 1989 23:08
20 lines
1272 bytes
In article <8912022231.AA26818@qna.cos.com>, patrick@cos (Patrick Steranka) writes:
>In BS, pg 164, 5.5.6 it states:
>
>	The assignment to "this" [in a constructor function] informs
>	the compiler that the programmer has taken control and that the
>	default mechanism for allocating storage should not be used.
>
>This does not seem to be supported by the GNU g++ compiler.
>Instead, the error
>
>	assignment of read-only parameter `$this'

try using the -fthis-is-variable flag.

Doug
--
Any man's death diminishes me,              | schmidt@ics.uci.edu (ARPA)
Because I am involved in Mankind;           | office: (714) 856-4043
And therefore never send to know for whom the bell tolls;
It tolls for thee        -- John Donne
Technical Details
Message-ID: <257855D9.4652@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!jarthur!uci-ics!gateway
References: <8912022231.AA26818@qna.cos.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!jarthur!uci-ics!gateway
From: schmidt@zola.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Re: Can't assign 'this' in a constructor
Message-ID: <257855D9.4652@paris.ics.uci.edu>
Date: 2 Dec 89 23:08:09 GMT
References: <8912022231.AA26818@qna.cos.com>
Reply-To: schmidt@zola.ics.uci.edu (Doug Schmidt)
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 20
In-reply-to: patrick@cos.com (Patrick Steranka)