There are some workarounds depending on the situation. For example a Kotlin class that takes a
CPointer
(in the primary constructor) can be instantiated in the event handler, which is handy when the state/functionality is being passed through to the event handler as a