Thank you Araq.

What would be a better alternative then? `cast[ref Point](addr 
mySystem.points[indexOfThePoint])` was the only way I found to create objects 
and then point to those objects using ref objects. I also read about `ptr`, but 
according to most references I've found, they are more error-prone (that's why 
I tried to go with ref objects instead).

I've also read about using new for ref objects, but I guess it would be wiser 
to have normal objects and references to them. This way, I can (for example) 
'move' a Point and automatically update the geometric objects to which it 
belongs.

Any recommendations or guidance from the community on how to approach this 
would be greatly appreciated.

Reply via email to