error message formatting
David Cogen
cogen@ll.mit.edu
Thu Apr 16 13:53:00 GMT 1998
> "Only for the standard classes"?
>
> Not good enough.
This (and my previous) may come across rather more nasty than I intended. It
was not meant as a criticism of the work that Cygnus or FSF is doing, or as an
expectation of entitlement. It was about users vs software only, and making a
point that we shouldn't have to adjust our expectations to the software;
rather the other way around. I am sorry if anyone was annoyed by it and will
watch myself from now on.
So anyway (ignoring the possible difficulty of implementation for now), in
terms of user benefit only, why would implementing typedef aliases in error
messages for "standard classes" only be a huge benefit? Standard classes are a
starting point only in a big system, and the number of user classes in a big
system will likely outnumber the standard ones.
Yes, I do appreciate the difficulties. I don't even see a good method to
select among multiple typedefs for the same template type (unless one comes
from a standard <...> header file and one from a "..." file; in this case use
the "..." one). Perhaps in this case it is appropriate to simply choose one,
arbitrarily.
With a c++ extension: newtypedef, it would be clear what to do. newtypedef,
unlike typedef, would define a new type, not an alias to an existing
type. Of course this is not standard c++, but it would solve the problem.
DavidC
More information about the Gcc
mailing list