I have a dynamic array of strings of length zero. When i write to the first element the program crashes, not surprisingly, but what should I be doing?

 dstring[] arr;

 arr[0] = "my string"d; // BANG !!
  • Inserting into zero-length dy... Cecil Ward via Digitalmars-d-learn

Reply via email to