Note that casting to a ref is dangerous, as ref's interfere with the 
Garbage-Collector. I guess when you really need a cast, you may want to cast to 
ptr instead of ref -- ptr is Nim's untraced pointer, similar to C's pointers.

Reply via email to