Join Slack
Communities
Powered by
on java it looks like is not possible to change an...
# announcements
e
elect
06/22/2018, 9:53 AM
on java it looks like is not possible to change an
enum
during runtime, is kotlin different in this regards?
d
diesieben07
06/22/2018, 9:53 AM
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
elect
06/22/2018, 9:56 AM
I have a wrapper to a c library using a lot of pointers to (enum) errors
k
karelpeeters
06/22/2018, 10:40 AM
Maybe you can look into generating sources? I know for example LWJGL uses a lot of it.
e
elect
06/22/2018, 1:23 PM
the wrapper is using lwjgl indeed
2
Views
Open in Slack
Previous
Next