|yacc question firstname.lastname@example.org (Pavel Grinfeld) (1999-04-29)|
|Re: yacc question email@example.com (1999-04-30)|
|Re: yacc question firstname.lastname@example.org (1999-05-03)|
|From:||Pavel Grinfeld <email@example.com>|
|Date:||29 Apr 1999 00:47:33 -0400|
|Keywords:||yacc, question, C++, comment|
I'm in a major yacc predicament.
I'm using C++. I have defined a custom type YYSTYPE which is a class
containing a bunch of other classed with constructors and
destructors. I would like to rely on instances of this class calling
their distructors when they "go out of scope". To put it another way,
I need freshly initialized instances of this class whenever I need
another variable of this type. From what I understand this does not
Is anyone familiar with this problem? Can anyone suggest a good
workaround as I am at a complete loss!
Many thanks in advance!
[That's why yacc and C++ hate each other. People can probably suggest
a variety of workarounds. -John]
Return to the
Search the comp.compilers archives again.