[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: %destructor feedback
From: |
Akim Demaille |
Subject: |
Re: %destructor feedback |
Date: |
Thu, 20 Oct 2005 18:38:02 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Wolfgang" == Wolfgang Spraul <address@hidden> writes:
> Akim -
Hey,
>> I'm not sure about %param-destructor, it is not very clean, but just
>> like there is %initial-action, we could introduce a %final-action
>> always run when leaving yyparse (whether on failure or not).
> When you say %param-destructor, do you mean the %destructor-param I was
> talking about?
Yep, sorry for the M-t, but actually it is thanks to the sed snippet
that I finally understood your point. I thought you wanted that
yyparse take care of freeing the %parse-params! And indeed, it made
little sense :)
But it seems that you are pointing out a bug: when I made
%parse-param, I had very clearly in mind that it should be available
everywhere where user code is called. That's what happens in C++, for
free (since these are members).
We need no %destructor-param etc., we need to fix yydestructor and
yysymprint so that %parse-param are passed to them, just like yyerror.
- Re: %destructor feedback, (continued)
- Re: %destructor feedback, Akim Demaille, 2005/10/20
- Re: %destructor feedback, Joel E. Denny, 2005/10/20
- Re: %destructor feedback, Frank Heckenbach, 2005/10/21
- Re: %destructor feedback, Joel E. Denny, 2005/10/21
- Re: %destructor feedback, Frank Heckenbach, 2005/10/22
- Re: %destructor feedback, Joel E. Denny, 2005/10/22
- Re: %destructor feedback, Frank Heckenbach, 2005/10/22
- Re: %destructor feedback, Joel E. Denny, 2005/10/22
Re: %destructor feedback, Akim Demaille, 2005/10/20