C++'ization of cp/parser.c/h, limited C++ parsing support for gengtype, Remove dependency of cp/cp-lang.c on cp/parser.h

Michael Matz matz@suse.de
Tue Sep 11 13:43:00 GMT 2012


Hi,

On Mon, 10 Sep 2012, Gabriel Dos Reis wrote:

> > You could also do this with an explicit pointer-to-context-struct 
> > parameter that's passed around (and that version of the patch I 
> > posted), but the class-based approached seems nicer to me.
> 
> Are we talking about encapsulation or "looking nice"? In either case, I 
> respectfully disagree -- talking specifically about the patch posted. 
> Having a giant struct with a zillion of member functions defies any 
> reasonable notion of "looking nice", and of "encapsulation."

Amen.


Ciao,
Michael.



More information about the Gcc mailing list