Hello, do Kotlin enums become real ObjC enums (whi...
# kotlin-native
g
Hello, do Kotlin enums become real ObjC enums (which are objects after all) or are they like real enums (two values share the same memory instance?
k
this is how a Kotlin enum gets exported
g
I have a hard time reading this, do you know if two “instances” of “alpha” would each occupy their own memory zone or would they both occupy the same one?
k
they are class properties. i.e., static
g
Thank you I’ll go read about that
b
Obj-C enums are C enums
s
FYI, ObjC enums are not objects. They are actually C enums which are backed by Ints by default. https://stackoverflow.com/questions/48986767/different-ways-of-declaring-enum-in-objective-c
b
This is closer to the ordinal property of a kotlin enum
g
Interesting, thanks