On Tue, 6 Dec 2005, Paul Eggert wrote:

"Joel E. Denny" <[EMAIL PROTECTED]> writes:

Does this work for you?

#define YYUSE(v) ((v) = (v))

No, yysymprint() declares its yyvaluep param const.

Let's remove the const, then.  There's little point to declaring auto
variables to be 'const'.

That's fine with me, but what if someone declares a parse param as const? Moreover, for C++, could an overloaded assignment with strange semantics have an unexpected effect?

Joel


_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to