Join Slack
Powered by
Hi, I was wondering why is the constructor for Arr...
# kotlin-native
l
lucasas
06/19/2017, 9:18 PM
Hi, I was wondering why is the constructor for Array inlined in Kotlin native. I looked up the source and it seemed to be using some annotations for "compiler magic".
https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/kotlin/kotlin/Array.kt
o
olonho
06/20/2017, 5:53 AM
lucasas: yes, to allow non-local returns from init lambdas
m
miha-x64
06/20/2017, 8:26 AM
Array constructor is also
inline
in Kotlin-JVM, maybe because this class is only compiler’s fantasy 🙂
2
Views
Open in Slack
Previous
Next