when the following is compiled via nim -r c
# Nim Compiler Version 0.17.0 (2017-05-17) [Linux: amd64]
import strutils, tables
import gtk2
import gdk2
import glib2
type
Foo = object
size:int
stuff:TableRef[string,string]
var zap:Foo
echo "nothing to do"
I get this error:
Error: cannot instantiate TableRef
got: (proc (drawable: PDrawable, font: PFont, gc: PGC, x: gint, y: gint,
text: cstring, text_length: gint){.cdecl, gcsafe.} | string, proc (drawable:
PDrawable, font: PFont, gc: PGC, x: gint, y: gint, text: cstring, text_length:
gint){.cdecl, gcsafe.} | string)
but expected: (A, B)
but commenting out the **import glib2** line produces a result that compiles
and runs. I've tried different import orders but that seems not to be relevant.
The gtk2 package was installed via nimble a few days ago (today=5-21-2017). A
more complex version of this (on an older linux box) was working several months
ago.
Is there a workaround?