You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a reference "MyClass::someMethod" that is a bound controller method, return the internal and external URL HREF. This can be done now given a controller that adds methods in the form:
val getSomeThing =funMyContext.(param:String): MyObject { ... }
Since Kotlin allow that reference, and the binder already supports binding to it. Just need to remember the information from the route so it can be looked up again.
The other form:
fun MyContext.getSomeThing(param:String): MyObject { ... }
Cannot yet work because Kotlin doesn't allow reference "MyClass::getSomeThing" in that form (It is both an extension function and a member function). Hopefully in M13, KT-8835 will be resolved allowing this.
The text was updated successfully, but these errors were encountered:
Ok thanks @udalov, so the user cannot "point" at the method via a reference, but we can still get to it from a variable holding a function (top example above), or by string name that is then found via KClass API. Maybe M14 :-) Thanks for commenting.
Given a reference "MyClass::someMethod" that is a bound controller method, return the internal and external URL HREF. This can be done now given a controller that adds methods in the form:
Since Kotlin allow that reference, and the binder already supports binding to it. Just need to remember the information from the route so it can be looked up again.
The other form:
Cannot yet work because Kotlin doesn't allow reference "MyClass::getSomeThing" in that form (It is both an extension function and a member function). Hopefully in M13, KT-8835 will be resolved allowing this.
The text was updated successfully, but these errors were encountered: