(Sep-22-2021, 05:45 PM)deanhystad Wrote: I don't understand what you are saying. Write a realistic example of what you want to do. If you can do that with C++, great. I know C++. If you can't, use python and pseudocode.
So, the code goes from top to down, first reads class One, it reads the value, then reads the class after (class Two) and can pass the value from class One to class Two. This is what you showed me with your code and what I have found on google. That's fine...this is example 2, where the flow goes from up to down.
What I face in my code is the opposite (ex.1). The code reads first class One that needs read_distance value, but it does not have it because the class that does that work is class Two, which is after class One. The code will reach class Two, after class One. This is where I believe my code "explodes"...
What can I do?
In C++ you can fix that, I do not know how to fix it in python..