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.
