This is the mail archive of the gcc-bugs@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: Preprocessor keyword #echo is missing


Zack Weinberg <zack@codesourcery.com> writes:

| Martin Sebor <sebor@roguewave.com> writes:
| 
| > A #echo at the compiler level rather than at the preprocessor level
| > would, IMHO, be extremely useful in the context of metaprogramming.
| > At the very least, it would provide a framework for the proposed
| > implementation of the static assert feature:
| >
| > http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2002/n1381.htm
| 
| That is an #error analog, not #echo. I do consider it a useful
| feature, but if I were implementing it I'd just take the spec straight
| from N1381 (with appropriate modifications for C) -- don't see the
| need for a static_echo().

You'll however realize that the proposal violates several C++ rules
concerning declarations.

-- Gaby


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