> Yes, you can wrap a delete like this:
    
    
    proc delete[T](val : ptr T ) : void {.importcpp:"delete #".}
    
    Run

Thank you for your reply. This is useful and not obvious for newcomers. 
Documentation should be updated to clarify this common use case. 

Reply via email to