Please consider the following

struct arc(T,U)
{

T some_var;
U  someother_var;
}

/* things */

class myclass
{
  this(){}
 ~this(){}
  void MYfunction()

  {
    arc!(string, string[]) * a;
    a.some_var = "hello";
  }
}


void main()
{
  c = new myclass();
  c.MYfunction();
}


This leads to a segmentation fault.

What am I doing wrong?

Reply via email to