Thomas
07/01/2019, 9:31 AMjava.lang.String.format
and NSString.create(format, args)
? The NSString
requires you to use *arrayOf(…)
for args. For example let’s say this is the expect function:
expect fun String.format(vararg args: Any?): String
How would you able to make an actual fun using NSString.create
?Thomas
07/01/2019, 9:34 AMsvyatoslav.scherbina
07/01/2019, 10:42 AMHow would you able to make an actual fun usingDue to restrictions of C/Objective-C varargs you can’t pass values received through Kotlin variadic parameters to Objective-C variadic method.?NSString.create
Thomas
07/01/2019, 10:58 AMThomas
07/01/2019, 10:59 AMsvyatoslav.scherbina
07/01/2019, 11:55 AMI guess I will need to avoid vararg for this, and use multiple functions for different type of argumentsThis is probably the only solution for now.
Thomas
07/02/2019, 12:13 PM