https://kotlinlang.org logo
#getting-started
Title
# getting-started
f

fmd

06/13/2016, 7:19 PM
Do I understand it correctly that the order of the
init { }
block of a class and a
val param: Foo by someDelegate()
will define the execution order of those statements inside the Java class constructor? So if the
init { }
block is above the parameter declaration and delegate invocation, the delegate can build upon the initialization work done inside the
init { }
block? (e.g. for Android view injection after the layout has been set.)