Is there a way to define finalizers/destructors in...
# kotlin-native
o
Is there a way to define finalizers/destructors in Kotlin Native? I'm experimenting with high-level bindings for Gtk, and would like to automatically wrap GObject reference counting, in particular, calling
unref()
. 1 reply ibelieve: in language like Kotlin, which inline functions and lambdas, finalizers and destructors are out of fashion. See my answer here: https://stackoverflow.com/questions/44747862/does-kotlin-native-have-destructors