proc `$`*[T: typed](x: ref T): string = "->" & $(x[])
type MyType = ref object
child: MyType
val: int
var a = MyType()
a.child = a
echo a
RunWay too naive it requires a cyclic check
proc `$`*[T: typed](x: ref T): string = "->" & $(x[])
type MyType = ref object
child: MyType
val: int
var a = MyType()
a.child = a
echo a
RunWay too naive it requires a cyclic check