bison-patches
[Top][All Lists]
Advanced

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

Re: FYI: default %printer/%destructor


From: Hans Aberg
Subject: Re: FYI: default %printer/%destructor
Date: Tue, 21 Nov 2006 13:05:50 +0100

On 21 Nov 2006, at 00:08, Joel E. Denny wrote:

C++ offers much more than just constructors and destructors for semantic
types in parsers.

I am not just sure exactly what, I mean, if one is not going to use C++ OO. I
mean, the template system does not seem worth the effort. :-)

Why can't you use C++ OO? Pointers to non-POD's work fine. Polymorphism
works fine.  The rest of your program (besides the parser) can use
non-POD's without restraint.  There's also the C++ standard library.

If one should program in what essentially is the C-subset, why not use C instead? :-) In fact, if a GC, other than a reference count should be implemented, C++ OO is just a bother (though it may change in a later version of C++).

As for my program, the parser builds dynamic iterated polymorphic objects, and in cmopbination with a reference count, that is very convenient.

  Hans Aberg






reply via email to

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