{.deadCodeElim: on.}
- import
- glib2, atk, gdk3, gdk2pixbuf, pango, cairo
- const
GFALSE = castgboolean # gtk3.nim(5, 11) Error: VM is not allowed to 'cast'
GTRUE = castgboolean
Compiler bug or my error? My idea was: glib2 defined gboolean data type, but not true and false constants. From glib2 docu/headers I have #define FALSE (0) and #define TRUE (!FALSE). I think the cast is not necessary but good stile. Indeed I expected problems with the not call in const definition, but error message is already one line above...
Nimrod Compiler Version 0.9.4 (2014-05-20) [Linux: amd64]
[Edit] A type conversion fixes the problem, and may be the better solution indeed?
const
GFALSE = gboolean(0)