<@U1UPP8WSX> secondary constructors always have to...
# getting-started
t
@richodemus secondary constructors always have to call the primary constructor first. Any code in the constructor block will only be executed after the primary constructor has finished running. What you want to do is not possible unless you pass SomeObjectThatNeedsCodeToInitialize to the secondary constructor. I think the best solution here is to use a factory function in the class Companion Object.