|
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 semantictypes in parsers.I am not just sure exactly what, I mean, if one is not going to use C++ OO. Imean, the template system does not seem worth the effort. :-)Why can't you use C++ OO? Pointers to non-POD's work fine. Polymorphismworks 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
[Prev in Thread] | Current Thread | [Next in Thread] |