on java it looks like is not possible to change an...
# announcements
e
on java it looks like is not possible to change an
enum
during runtime, is kotlin different in this regards?
d
No. The point of an enum in both Java and Kotlin is that it a set of fixed options. If you need a dynamic set, you do not want an enum.
e
I have a wrapper to a c library using a lot of pointers to (enum) errors
k
Maybe you can look into generating sources? I know for example LWJGL uses a lot of it.
e
the wrapper is using lwjgl indeed