So, that's not this a bug?

  char[] a = [ 'a', 'b', 'c' ];
  char[] b = cast(char[])"abc";

  assert(a == b);       /* no problem! */
  assert(typeid(a) ==
         typeid(b));    /* no problem! */

// v--- TOGGLE CODE
  //a[0] = 'A';         /*
  b[0] = 'A';           /* there is problem:
                         * Segmentation fault
                         */

Thanx...

Reply via email to