Slackbot
06/02/2022, 12:02 AMeric
06/02/2022, 12:02 AMmyExtension {
feature1 {
// works fine!
}
compose {
// doesn't call my method
}
}
ephemient
06/02/2022, 12:17 AMcollect
is another annoyingly common name)eric
06/02/2022, 12:18 AMeric
06/02/2022, 12:22 AMVampire
06/02/2022, 6:34 AMdelegate.compose { ... }
Vampire
06/02/2022, 6:36 AMeric
06/02/2022, 6:58 AMephemient
06/02/2022, 7:07 AMmyExtension {
delegate.compose {
eric
06/02/2022, 7:10 AMcompose
method though. if nothing else it’s interesting to play with.eric
06/02/2022, 7:10 AMcompose
. the plugin is in kotlin, so i can’t do metaclass.compose = { … }
like what i’m finding on stackoverflowephemient
06/02/2022, 7:13 AMeric
06/02/2022, 7:14 AMVampire
06/02/2022, 2:18 PMClosure
instances but instances of a dynamic subclass and you cannot easily get or set a meta class for those.
So it probably indeed seems to be best to either rename the method or at least change its signature, for example to compose(true) { ... }
or compose(null) { ... }
or whatevereric
06/02/2022, 2:19 PMeric
06/02/2022, 2:19 PM