Marc Knaup
08/25/2020, 11:11 AMNSInteger
in common Darwin code? 😮louiscad
08/25/2020, 11:12 AMMarc Knaup
08/25/2020, 11:12 AMlouiscad
08/25/2020, 11:12 AMMarc Knaup
08/25/2020, 11:13 AMlouiscad
08/25/2020, 11:13 AMMarc Knaup
08/25/2020, 11:13 AMInt.toNSInteger()
and NSInteger.toInt()
extensions in each target with actual/expect?louiscad
08/25/2020, 11:14 AMLong
in place of Int
if there's a risk to go over ~2 Billion.Marc Knaup
08/25/2020, 11:15 AM.toInt()
vs .toLong()
.
0
is always good 🙂NSInteger = <http://kotlin.Int|kotlin.Int>
on watchos-arm64
?louiscad
08/25/2020, 11:35 AMMarc Knaup
08/25/2020, 11:38 AMlouiscad
08/25/2020, 11:39 AMMarc Knaup
08/25/2020, 11:40 AMlouiscad
08/25/2020, 11:40 AMMarc Knaup
08/25/2020, 11:42 AMJurriaan Mous
08/25/2020, 1:16 PMMarc Knaup
08/25/2020, 1:21 PMNSInteger
in that commonized code.Jurriaan Mous
08/25/2020, 1:29 PMlouiscad
08/25/2020, 1:30 PMInt
actually NSInteger
s?Marc Knaup
08/25/2020, 1:30 PMInt
randomly switches from 32 to 64 bit like Swift’s Int
🤔russhwolf
08/25/2020, 1:46 PMNSInteger
is just a typealias to Int
or Long
, you can sometimes get away with using convert()
to avoid platform-specific expect/actual. https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/convert.htmlJurriaan Mous
08/25/2020, 1:50 PMMarc Knaup
08/25/2020, 1:52 PMNSInteger
and NSUInteger
proper integer types and povide all the conversions and operations on its own.louiscad
09/05/2020, 7:44 PMInt
(aka. NSInteger
) resolve to a 32 bit integer (aka. Kotlin's Int
), right?Marc Knaup
09/05/2020, 9:41 PMrusshwolf
09/05/2020, 10:07 PMNSInteger
-based expect/actuals
https://github.com/russhwolf/multiplatform-settings/blob/master/buildSrc/src/main/kotlin/BuildHelpers.kt#L138-L151