bison-patches
[Top][All Lists]
Advanced

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

Re: FYI: default %printer/%destructor


From: Joel E. Denny
Subject: Re: FYI: default %printer/%destructor
Date: Sun, 19 Nov 2006 17:54:43 -0500 (EST)

On Sun, 19 Nov 2006, Joel E. Denny wrote:

> On Sun, 19 Nov 2006, Hans Aberg wrote:
> 
> > > > The %destructor is only needed with output language C.
> > > 
> > > Currently, it's also useful for C++.
> > 
> > You mean, of one writes code in the common C/C++ subset. :-)
> 
> I think you, Akim, and I have all agreed that semantic types cannot have 
> C++ destructors given Bison's current C++ skeletons.  You need %destructor 
> instead.  That's what I'm referring to.

I should be more careful.  I'm thinking of when you use %union with the 
C++ skeletons.  I have not tried the #define YYSTYPE approach, but I 
recall someone reporting using C++ destructors then.

Anyway, my point is that %destructor can be useful with Bison's current 
C++ skeletons.




reply via email to

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