Join Slack
Powered by
It is possible to create an object by lazy delegat...
# announcements
e
ech0s7r
02/22/2018, 11:22 PM
It is possible to create an object by lazy delegation passing a parameter to the object in a static context?
o
orangy
02/22/2018, 11:26 PM
Using a top-level
val
instead of
object
?
e
ech0s7r
02/22/2018, 11:31 PM
Yes, there are other several way, lateinit, top-level val, etc... I was just wondering if would be possible
o
orangy
02/22/2018, 11:33 PM
nope, objects can have constructor parameters
d
droidrcc
02/23/2018, 9:38 AM
sorry, can or cannot 🙂 ?
o
orangy
02/23/2018, 10:02 AM
“cannot”, sorry, was sleepy
3
Views
Open in Slack
Previous
Next