This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fw: c++ "with" keyword
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Norman Jonas" <normanjonas at arcor dot de>
- Cc: <gcc at gcc dot gnu dot org>
- Date: 29 Dec 2002 08:18:26 -0200
- Subject: Re: Fw: c++ "with" keyword
- Organization: GCC Team, Red Hat
- References: <000f01c2aee4$323b0360$fe78a8c0@SERVER>
On Dec 29, 2002, "Norman Jonas" <normanjonas@arcor.de> wrote:
> Since the several years I develop in c++ there is nothing I missed
> more than the "with" keyword as it is known by languages like
> Pascal. So I would like to know what gcc developer / user think of
> the idea to advance the c++ standard to add it.
There's a general trend against extensions in GCC these days. I don't
always agree with this stance, but I happen to agree with it in this
case. Pascal's `with' can be pretty much modeled in OO as the
implicit this. Wishing for the presence of `with' is, IMHO, generally
an indication that the code should be in a method of the class whose
members you're accessing. Besides, people often complain that C++ has
too much implicit behavior and room for ambiguities; `with' would just
add to it.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer