title: How to declare a static array with variable length in delphi?
body: <p>I need an array, that is optimized for one-time-initialization at runtime, with a given length. So memory should be allocated at runtime, but I don't need to change its length.</p>
  
  <p>Is there a array-type other than the pure dynamic array? (it seems to be not the optimal choice for this task)</p>
  
  <p>Bonus would be, if the initialized array is indexable via pointer-iteration, so all it's elements are allocated consecutive in memory.</p>
  
  <p>Is this all just a daydream of a non-experienced programmer, or is there a possibility to achieve this?</p>
  
  <p>I could imagine to do this with manual memory allocation, but maybe there's another way.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>My main concern is the reading and writing speed of the array.</p>