Is there a reason why `deepCopy` doesn't exist on `--gc:arc` / is there a 
workaround that works on the normal `gc` and `arc`? I don't think I see it 
mentioned on your todo list above.
    
    
    when hasAlloc and notJSnotNims and not usesDestructors:
      # XXX how to implement 'deepCopy' is an open problem.
      proc deepCopy*[T](x: var T, y: T) {.noSideEffect, magic: "DeepCopy".} =
        ## Performs a deep copy of `y` and copies it into `x`.
        ##
        ## This is also used by the code generator
        ## for the implementation of ``spawn``.
        discard
      
      proc deepCopy*[T](y: T): T =
        ## Convenience wrapper around `deepCopy` overload.
        deepCopy(result, y)
    
    
    Run

Reply via email to