matt tighe
05/15/2019, 9:21 PMclass MyClass(instance: MyObject) {
val prop = instance.myFun()
}
would instance
be released as soon as construction had completed?prop
were lazily instantiated?Dominaezzz
05/15/2019, 9:23 PMkarelpeeters
05/15/2019, 9:23 PMmatt tighe
05/15/2019, 9:23 PMMyClass
would still need to be passed a reference to instance
in order to compute myFun()
, no?karelpeeters
05/15/2019, 9:24 PM