However initWithFormat appears to be variadic, and Kotlin/Native doesn’t support variadic Objective-C methods.
gildor
11/15/2018, 11:36 AM
Really curious about problems with variadic functions support
s
svyatoslav.scherbina
11/19/2018, 8:59 AM
C variadic functions differ a lot from Kotlin variadic functions. For example, in C variadic function you generally can’t find types and count of variadic arguments dynamically. That’s why it is impossible to override variadic Objective-C method with Kotlin function. So to support variadic Objective-C methods we have to do one of the following:
• Make them non-overridable (and provide the separate implementation for this case)
• Don’t represent C vararg as Kotlin array-like vararg.