This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: c++ "with" keyword


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]