On 11/06/13 02:31, Richard Biener wrote:
We decided to move to C++. As part of a later discussion we decided
to go with a single general dynamic-casting style, mimicing the "real"
C++ variant which is dynamic_cast < ... >. Which resulted in
is-a.h.
So yes, we've decided to go C++ so we have to live with certain
uglinesses of that decisions (and maybe over time those uglinesses
will fade away and we get used to it and like it).
Thus, there isn't another option besides using the is-a.h machinery
and enabling and using RTTI. Sticking to C for gimple doesn't seem
to be consistent with the decision to move to C++.
Oh, I'm not saying I'm a big fan of as_a / is_a or C++ in general
as it plays out right now. But well, we've had the discussion and
had a decision.
Execute.
OK. I'll hold my nose when I see the as_a/is_a stuff and try to get
past them :-)
jeff