Sep-05-2018, 08:54 PM
The main problem that I see is that you're filling the
I think there is not much you can do until you understand what the system exactly expects to find in the planets list.
planets
list with objects having a different type, namely the type Planet
instead of whatever type was returned by the call to sphere()
in the first version. You cannot send an unexpected type of objects in a system and think the system will work as usual. The disturbing fact here is that you don't have an error message, that is to say the system silently ignores your ill-typed instances. I think it is a design flaw in this app.I think there is not much you can do until you understand what the system exactly expects to find in the planets list.