progress on 'spawn'

This commit is contained in:
Araq
2014-08-10 03:17:30 +02:00
parent fd086abb43
commit 76011e40ef
5 changed files with 33 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
discard """
output: '''13 abc'''
"""
type
PBinaryTree = ref object
le, ri: PBinaryTree
value: int
proc main =
var x: PBinaryTree
deepCopy(x, PBinaryTree(ri: PBinaryTree(le: PBinaryTree(value: 13))))
var y: string
deepCopy y, "abc"
echo x.ri.le.value, " ", y
main()