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: Thu, 20 Oct 2005 10:09:57 -0400 (EDT)

On Thu, 20 Oct 2005, Akim Demaille wrote:

"Joel" == Joel E Denny <address@hidden> writes:

> I've also noticed that the bison documentation says:

>   Note that in the future, Bison might also consider that right hand
>   side members that are not mentioned in the action can be destroyed.

> If this is implemented,

<snip>

Maybe that does not deserve that much attention: it seems pretty weird
not to use a value.  A warning seems a better feature.

Warnings vs. automatic destructor calls for unused RHS semantic values.... Given the potential problems Wolfgang and I have pointed out, I vote for the warnings. Disabling a particular warning would be as easy as adding a do-nothing `$5', for example. Or, perhaps for readability, YYUSE could be placed in the user interface.

Joel




reply via email to

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