grauzone wrote:
> newobject.tupleof[i] = old.tupleof[i];

If the current value of tupleof[i] is an object, the object will be
referenced, won't it?

Shall I write:

  auto elem = old.tupleof[i];
  static if (is(typeof(elem) == class))
  {
     newobject.tupleof[i] = clone(elem);
  }
  else
  {
     newobject.tupleof[i] = elem;
  }




--Qian

Reply via email to