This isn’t really debugging, and I don’t really need help with it, since I don’t have problem with it so far.
I’m pretty sure that anyone who has done something recursive knows what I’m talking about.
Lets say I have a recursive data structure like json or something where each node holds few other nodes.
If you do it the easy recursive way where you do:
void render() { draw(this); children.render(); }
what ends up happening, is that the first nodes that get rendered, are the ones that are furthest down the node path.
Got any ideas how to correct that?