I am a bit confused by the `memScoped` behaviour :...
# kotlin-native
р
I am a bit confused by the
memScoped
behaviour :
Copy code
val qOut = memScoped {
            val q = allocArray<IntVar>(6)
            q[0] = 56
            q
        }
println(qOut[0]) //prints 56
shouldn't have the memory behind
q
been released?
a
Hello @Ролан! I think this is a discussion you would like to read: https://github.com/JetBrains/kotlin-native/issues/3155
р
OK makes sense - thanks!