Andi J
09/03/2020, 7:57 PMWhen calling variadic C functions spread operator is supported only for *arrayOf(...)
I tried to add non-null strings to a mutable list and convert that list to an array, then use the spread operator to pass these strings as parameters to a variadic C function.
Someone on StackOverflow has expierenced a similar thing: https://stackoverflow.com/questions/62113545/how-to-pass-vararg-parameters-from-kotlin-common-code-to-ios-functions
I wonder, what the reason for this limitation is and if it can be lifted in the future. Thanks!