tboehmdeepcopy.nim 264 B

1234567891011121314151617181920
  1. discard """
  2. cmd: "nim c --gc:boehm $options $file"
  3. output: '''meep'''
  4. disabled: "windows"
  5. disabled: osx
  6. """
  7. proc callit(it: proc ()) =
  8. it()
  9. proc main =
  10. var outer = "meep"
  11. proc x =
  12. echo outer
  13. var y: proc()
  14. deepCopy(y, x)
  15. callit(y)
  16. main()