title: How to initialize an array of objects in Pascal?
body: <p>I have a queue defined</p>
  
  <pre><code>Queue = object
      head, tail : pNode;
      constructor init;
      procedure insert(what : data);
      ...
  end;
  </code></pre>
  
  <p>Where </p>
  
  <pre><code>constructor Queue.init;
    begin
    new(head);
    tail := head;
    head^.next := nil;
  end;
  </code></pre>
  
  <p>Then I have <code>P : array[0..9] of Queue;</code> and want to initialize queues in it like <code>for i:=0 to 9 do P[i].init;</code>, but the compiler complains that P does not seem to be initialized.</p>
  
  <p>So how to initialize array of objects properly? Thanks.</p>