string and char[]

Morlan home at valentimex.com
Fri Apr 8 03:46:08 PDT 2011


It is OK if I write

  int[char[]] asr;
  asr["hello"] = 10;

but the following does not compile:

  char[] car = "hello";

What is the explanation for this behaviour?


More information about the Digitalmars-d mailing list