elect
08/15/2019, 9:05 AMvar hovered = false
var held = false
if(..) {
val (_, ho, he) = buttonBehavior(columnHitRect, columnId)
hovered = ho
held = he
}
spand
08/15/2019, 9:32 AMelect
08/15/2019, 9:33 AM(hovered, held) = buttonBehavior(columnHitRect, columnId)
spand
08/15/2019, 9:34 AMelect
08/15/2019, 9:34 AMif
in betweenspand
08/15/2019, 9:36 AMelect
08/15/2019, 9:37 AMspand
08/15/2019, 9:41 AMelect
08/15/2019, 9:42 AMDALDEI
08/24/2019, 7:34 PMDALDEI
08/24/2019, 7:35 PMHullaballoonatic
10/02/2019, 9:16 PMinterface A {
val a1: String
val b1: Int
companion object {
operator fun invoke(a1: String, b1: Int) = object : A {
override val a1 = a1
override val b1 = b1
}
}
}
class B(a1: String, b1: Int, val c1: Int): A by A(a1, b1)
val a = A("foo", 42)
you can of course implement B in the same fashion
this has a lot of advantages in class delegation, like basically having "multiple inheritance", so I don't ever run into your concerns in my code.