Hello,
I'd like to find base class of a class being defined. I tried to use __super, but it seems it can be used only to call base class' methods. Some sample code:
ref struct Team {
ref struct ScoreDescription {};
ScoreDescription Score;
};
ref struct FootballTeam : public Team {
ref struct ScoreDescription : public __super::ScoreDescription { int Score, Won, Lost, Goals; };
ScoreDescription Score;
FootballTeam() {
Score.Goals = 0;
}
};
int main(void) {
FootballTeam Italy;
Italy.Score.Goals = 1;
}
The definition of *::ScoreDescription
will be generated by a macro that won't know what the exact base class is. Is there anything I can put instead of __super to get this behavior?