From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Duffek To: Dautrevaux@microprocess.com Cc: gdb@sources.redhat.com, insight@sources.redhat.com Subject: RE: Register group proposal Date: Sat, 24 Feb 2001 15:43:00 -0000 Message-id: <200102242351.f1ONpp704661@rtl.cygnus.com> References: <17B78BDF120BD411B70100500422FC6309E214@IIS000> X-SW-Source: 2001-02/msg00342.html On 23-Feb-2001, Bernard Dautrevaux wrote: >Perhaps for avoiding an unneeded dependency, that would trigger superfluous >recompiles of users of "abc.h" that do not need "xyz.h" if "xyz.h" is >modified? I agree that's a pain. But prohibiting typedefs only avoids a small subset of superfluous recompiles. For example, changing a single macro in gdbarch.h causes a massive rebuild. Eventually, GCC probably will support header file compilation, which probably will lead to fully-accurate dependency generation. This will eliminate superfluous recompiles. In the meantime, the problem diminishes as hardware speedups outpace GCC complexity. However, humans won't ever get better at writing maintainable code or understanding existing code. Typedefs help us achieve both of those goals. >Another problem may be seen as "name space pollution": If you don't mind >about "xyz.h" why should you be prevented using some identifiers colliding >with the private parts of it? Regardless of whether we nest include files, global namespace clashes are (1) a concern that is (2) avoidable by using naming conventions minimizing the likelihood of clashes. Nick