This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Warning patch installed
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Warning patch installed
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 04 May 2000 22:53:51 +0200
- Cc: egcs-patches at egcs dot cygnus dot com, zack at wolery dot cumb dot org
- Organization: CodeSourcery, LLC
- References: <200005042037.QAA14837@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
| > From: Gabriel Dos Reis <gdr@codesourcery.com>
| >
| > A client of a const-pointer shouldn't (logically) be allowed to free()
| > the storage the const-pointer is pointing to, without explicitly
| > subverting the type system. He is expected to just be inspecting the
| > pointed object.
| > -- Gaby
|
| So are you simply against having free itself silently accept const
| pointers or are you also against a freeconst/xfree replacement?
The former.
I'm for freeconst (or whatever it gets called).
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com