camdenorrb
04/16/2019, 11:31 AMcamdenorrb
04/16/2019, 11:36 AMribesg
04/16/2019, 11:37 AMcamdenorrb
04/16/2019, 11:37 AMhho
04/16/2019, 11:37 AMcamdenorrb
04/16/2019, 11:37 AMMiSikora
04/16/2019, 11:38 AMsuper
in this context. Extension methods are static.ribesg
04/16/2019, 11:38 AMcamdenorrb
04/16/2019, 11:39 AMribesg
04/16/2019, 11:39 AMT.foo()
instead of foo(t: T)
like they’re the same thing. They’re notcamdenorrb
04/16/2019, 11:40 AMribesg
04/16/2019, 11:41 AMfoo(ctx: CmdContext) = with(ctx) { ... }
camdenorrb
04/16/2019, 11:41 AMMiSikora
04/16/2019, 11:41 AMribesg
04/16/2019, 11:42 AMcamdenorrb
04/16/2019, 11:42 AMribesg
04/16/2019, 11:42 AMoverride
in front of an extension function lolcamdenorrb
04/16/2019, 11:43 AMribesg
04/16/2019, 11:46 AMribesg
04/16/2019, 11:46 AMcamdenorrb
04/16/2019, 11:47 AMribesg
04/16/2019, 11:48 AMribesg
04/16/2019, 11:49 AMribesg
04/16/2019, 11:50 AMcamdenorrb
04/16/2019, 11:50 AMribesg
04/16/2019, 11:51 AMgildor
04/16/2019, 12:35 PMribesg
04/16/2019, 12:37 PMmarstran
04/16/2019, 1:04 PMdsl {
"some string".someDSLFunction()
}
ribesg
04/16/2019, 1:06 PMmarstran
04/16/2019, 1:07 PMval context = this
with(super) {
context.executeWithChecks()
}
But it doesn't compile, because you can't use super
as an expression.gildor
04/16/2019, 2:18 PMgildor
04/16/2019, 2:19 PM