title: how to assign multiple values into a struct at once?
body: <p>I can do this on initialization for a struct Foo:</p>
  
  <pre><code>Foo foo =  {bunch, of, things, initialized};
  </code></pre>
  
  <p>but, I can't do this:</p>
  
  <pre><code>Foo foo;
  foo = {bunch, of, things, initialized};
  </code></pre>
  
  <p>So, two questions:</p>
  
  <ol>
  <li>Why can't I do the latter, is the former a special constructor for initialization only? </li>
  <li><p>How can I do something similar to the second example, i.e. declare a bunch of variables for a struct in a single line of code after it's already been initialized? I'm trying to avoid having to do this for large structs with many variables:</p>
  
  <pre><code>Foo foo;
  
  foo.a = 1;
  foo.b = 2;
  foo.c = 3;
  //... ad infinitum
  </code></pre></li>
  </ol>