On Fri, 08 Apr 2011 12:46:08 +0200, Morlan <[email protected]> wrote:

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?

The first should not be allowed. It is a mistake to use non-immutable
keys for an associative array.

--
Simen

Reply via email to