> For libs like gtk/gintro it seems not to work, as widgets can be owned by gtk 
> containers, and gtk uses ref counting internally.

I don't see why that would cause any problems for the Nim wrappers.

> I wonder if a native Nim GUI with widgets would work with owned refs.

[https://github.com/nim-lang/Nim/blob/devel/tests/destructor/twidgets_unown.nim](https://github.com/nim-lang/Nim/blob/devel/tests/destructor/twidgets_unown.nim)
 does work...

Reply via email to