This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: FYI, I'm back on the C++ camp now.


>>>>> "Matt" == Matt Rice <ratmice@gmail.com> writes:

Matt> I still haven't mustered up motivations for this... where the main
Matt> issue is that of nested structures,
Matt> both c, and c++ support nested structures but incompatibly, the c
Matt> compatible subset of c++ does not.
Matt> this in means de-nesting struct foo {  struct bar { } } like
Matt> interfaces, which I would probably advocate skipping and never fully
Matt> compiling with -Wc++-compat rather than denesting all of the
Matt> structures and putting them back together (in the case of a move to
Matt> c++)...

Matt> and given the ugliness with denesting all of gdb's structures I
Matt> figured someone would object to that anyways were we to stay at
Matt> -Wc++-compat as I don't really think it helps the code clarity.

FWIW I think denesting them is fine.
Usually if they have a tag it means they're referred to by other code.
So treating them globally makes sense -- it is how the code already
works, it is just written in a goofy way.

Tom


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