xparq / Out_of_Nothing

Versatile entity-based simulation & visualization/gamification framework PROTOTYPE
0 stars 0 forks source link

Abandon the crippling C++ RAII-like (all in ctors) system init #483

Open xparq opened 8 months ago

xparq commented 8 months ago

This is not a good fit for RAII, as it turns out, and just makes life unnecessarily painful. A plain-old explicit, "C-like" init sequence would make so many things so much less convoluted! E.g.:

BUT, BEWARE: Lots of static instances (initialized from the config etc.) at various places may potentially interfere with that, as they assume everything being already constructed properly, "by magic" (which is the very point of RAII)!