CLOVIS
08/31/2020, 1:17 PMval a by delegate1() and delegate2()
I'm expecting it to have to define
infix fun Delegate.and(other: Delegate): Delegate {...}
But since delegation is defined on the presence of methods, and not on the inheritance from an interface, I don't know how to do it :/Nikky
08/31/2020, 1:19 PMval a by (delegate1() and delegate2())
and then the returned object/instance from and
just needs to have the correct functions for delegationNikky
08/31/2020, 1:20 PMCLOVIS
08/31/2020, 1:20 PMAny
, then I can't call getValue
on the objects to combine themCLOVIS
08/31/2020, 1:21 PMAny
?Tobias Berger
08/31/2020, 1:21 PMCLOVIS
08/31/2020, 1:22 PMCLOVIS
08/31/2020, 1:22 PMTobias Berger
08/31/2020, 1:24 PMReadOnlyProperty
and ReadWriteProperty
interfaces, but most default delegate implementations don't extend those.CLOVIS
08/31/2020, 1:28 PMCLOVIS
08/31/2020, 1:29 PMTobias Berger
08/31/2020, 1:30 PMNir
08/31/2020, 2:28 PMNir
08/31/2020, 2:28 PMTobias Berger
08/31/2020, 2:28 PM