|
Am 21.05.2014 09:28 schröbte Tim Hill:
Frim a robustness standpoint its vad to rely on the order of GC .. If you want robust code you should not rely on specific GC behavior
If the C library you are binding to depends on a certain order of destruction, so does your binding code. The last two big libraries I wrote bindings for (SDL and APR) both had that "problem" on multiple occasions. The only alternative to depending on GC order would be manual lifetime management ...
Philipp