help-bison
[Top][All Lists]
Advanced

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

Re: About %destructor is c++ mode


From: Hans Åberg
Subject: Re: About %destructor is c++ mode
Date: Thu, 18 Aug 2016 17:45:28 +0200

> On 18 Aug 2016, at 16:03, Min Wang <address@hidden> wrote:

> So I should use 
> 
> %type <PROG> PROG                                                             
>  
> 
> instead of  
> 
> %type <PROG*> PROG  

> Thus I do not need %destructor at all?

If you write a proper C++ type T with T::~T destructor, then %destructor should 
not be used, nor explicit deallocation in the actions.




reply via email to

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