bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %destructor feedback


From: Joel E. Denny
Subject: Re: %destructor feedback
Date: Wed, 4 Jan 2006 02:15:01 -0500 (EST)

On Tue, 3 Jan 2006, Akim Demaille wrote:

> >>> "Joel" == Joel E Denny <address@hidden> writes:
> 
>  > This seems even clearer:
> 
>  >   {
>  >     YYABORT;
>  >     YYUSE_VAL ($$);
>  >   }
> 
>  > What do you think?
> 
> I'm fine with that change.  Please, go ahead :)

Above is an example usage of the new YYUSE_VAL macro we've been debating.  
Its purpose is to suppress bison warnings about unused typed $$ and $n 
without generating compiler or lint warnings. Here's the definition:

  #define YYUSE_VAL(e) /* empty */

Paul, I believe you're still opposed to this.  Or did you just not 
understand my intentions?  Akim, I have the impression that you're 
ambivalent, but you're saying go ahead.  I don't recall seeing any other 
opinions.

Even so, I'll work on a patch to add this #define to all the skeletons, 
update the test cases to reflect appropriate usage, and add an explanation 
to the user documentation.

It might be a couple of days before I finish because I have a couple of 
other patches ahead of this one.  During that time, perhaps people can 
write in to say "yes, I like it" or "no, it's silly and I'll never use 
it".  If I hear nothing by the time I'm done, I guess I should just commit 
it.

Joel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]