Hi! I need help on wrapping my head around passing...
# announcements
d
Hi! I need help on wrapping my head around passing some object to a delegate when using class delegation. Maybe it's not possible, but would love some advice. What I am trying to do:
Copy code
class Screen : ScreenLifeCycle by Helper(this.getObject()) {
}
That is my delegate (Helper) needs some object which will only be created later after
Screen
is instantiated. Above code won't compile, because
this
is unavailable at that point, I just want to show what I need to achieve. Any hints?