I want to shallow clone a Kotlin object of unknown structure (but of a known superclass). Since reflection is very limited for native, I haven't found a way to do that. Any hints?
Is there some way I could maybe pass a pointer to the object or something to C and then use some C magic to do the shallow cloning?