> I guess I'll use a converter.

I still hope that we get an answer of a core dev. That use case is very common 
in OO languages. So I am asking myself already for a long time how to handle 
it, maybe I have already asked others, I can not really remember. I have for 
example a lot of legacy Ruby code that extends standard types and C lib types.

You say that the table type is final. So I wonder why is that necessary. Well, 
myTable = newTable() construct is a problem indeed.

Your question is related to my one from some weeks ago

[https://forum.nim-lang.org/t/2982](https://forum.nim-lang.org/t/2982)

As most users coming from other higher level OO languages like Ruby would 
expect it just to work, I decided to provide it for GTK3. Beside something like 
"myButton = newButton()" we have an initButton(myExtendedButton). See my post 
above. Seems to work fine.

Converters -- well Araq does not like converters too much, and many converters 
can make compile slow. 

Reply via email to