title: Possible to create statically allocated array in swift?
body: <p>I want to create a struct in swift that has a small fixed number of values (say 16 floats) as instance data. It is required that this struct not store these values on the heap, so that the address of an instance of the struct is the address of the instance vars. It is also a requirement that these values be accessible internally to the struct via subscript, as Arrays are.</p>
  
  <p>In C you would simply define this kind of thing thusly:</p>
  
  <pre><code>struct Matrix4x4 {
      float elements[16];
      ...
  } myMatrix;
  </code></pre>
  
  <p>With this code, <code>sizeof(Matrix4x4) == 64</code> and also <code>&amp;myMatrix == &amp;myMatrix.elements[0];</code>  In swift, if I analogously define the <code>elements</code> variable as type <code>[Float]</code>, the matrix instance only contains a pointer to the array, since the <code>Array&lt;Float&gt;</code> instance is an object stored on the heap.</p>
  
  <p>Is there a way in swift to get static allocation of the instance vars without abandoning the convenience and efficiency of array-like subscripting access?</p>