> Well the second one was this one: <https://play.nim-lang.org/#ix=4e9w>

What's wrong with this example?

"Pointer instability" in other languages:

**C++** : <https://glot.io/snippets/geut9i4ofu>

**D** : <https://glot.io/snippets/geutfftvnn>

To fix this "instability" just change `object` to `ref object`: 
<https://play.nim-lang.org/#ix=4eeN>

Reply via email to