title: Calling primary constructor from secondary constructor after some calculations are done
body: <p>Basic question. I have a primary and secondary constructor, and inside the secondary constructor I calculate/fetch the primary constructors</p>
  <p>This is an issue since as far as I am aware you need to immediately call the primary constructor inside the second.</p>
  <p>Like so</p>
  <pre><code>constructor() : this(/*parameters for primary constructor*/)
  </code></pre>
  <p>However, I can't call the primary constructor because I don't know the parameters yet.</p>
  <pre><code>constructor() : this(/*???*/) {
     //find parms of primary constructor
     //i want to call primary constructor here
  }
  </code></pre>
  <p><em>Is it possible to call the primary constructor later on in the secondary constructor?</em></p>
  <p><em>Is there a better way to structure this to avoid the issue?</em></p>
  <p>Here is an oversimplified example</p>
  <pre><code>class Test(var name: String,var age: String,var dateOfBirth: String){
      constructor(id: String) : this(/*???*/) {
        //get name, age, dob, from id
  
        I want to call the primary constructor here since 
      }
  }
  </code></pre>
  <p>My best solution was simply to send empty/null values to the primary constructor and then change them in the body of the constructor</p>
  <pre><code>constructor(id: String) : this(null,0,null) {
     name = 
     age = 
     dateOfBirth = 
  }
  </code></pre>
  <p>This works, but I was wondering if there is a better way</p>
  <p>It is a definite possibility there is just a far better way to structure this whole thing, that would avoid this issue altogether, so let me know if that is the case!</p>