hi, given to types, I would like to move the one's memory to the other's canceling its destructor.
For example: from typetraits import supportsCopyMem const maxElems = 1000 type Array*[T] = object data: ptr array[maxElems, T] proc `=destroy`*[T](x: var Array[T]) = if x.data != nil: when not supportsCopyMem(T): for i in 0..<maxEntities: `=destroy`(x[i]) dealloc(x.data) proc `=copy`*[T](dest: var Array[T], src: Array[T]) {.error.} proc initArray*[T](): Array[T] = result.data = cast[typeof(result.data)](alloc(maxElems * sizeof(T))) var s = initArray[int]() var a: seq[int] = # ??? Run The program is compiled with `--gc:orc` Is there a recommended way to do this? thanks for your help!