https://kotlinlang.org logo
Title
z

zt

05/02/2023, 8:32 PM
I'm wondering is it possible to have like a one time initialization for a delegate with reference to the KProperty? its only possible to access the KProperty from within the getter and setter methods
currently in both my getter and setter i check if a lateinit var is initialized, and if it isnt then I initialize it using the name provided by the KProperty
z

zt

05/02/2023, 8:47 PM
oh thats perfect, thank you