gdc -O2 -m64 -Isrc -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestDrawingArea.d -o demos/gtkD/TestWindow/TestDrawingArea.o
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: function gtk.Widget.Widget.addOnDraw (bool delegate(Context, Widget) dlg, GConnectFlags connectFlags = cast(GConnectFlags)0) is not callable using argument types (bool delegate(Scoped!(Context) context, Widget widget))
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: function gtk.Widget.Widget.addOnDraw (bool delegate(Context, Widget) dlg, GConnectFlags connectFlags = cast(GConnectFlags)0) is not callable using argument types (bool delegate(Scoped!(Context) context, Widget widget))
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: cannot implicitly convert expression (&this.drawCallback) of type bool delegate(Scoped!(Context) context, Widget widget) to bool delegate(Context, Widget)
make: *** [demos/gtkD/TestWindow/TestDrawingArea.o] Error 1
On 03/18/2014 12:42 PM, Russel Winder wrote:
gdc -O2 -m64 -Isrc -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestDrawingArea.d -o demos/gtkD/TestWindow/TestDrawingArea.o
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: function gtk.Widget.Widget.addOnDraw (bool delegate(Context, Widget) dlg, GConnectFlags connectFlags = cast(GConnectFlags)0) is not callable using argument types (bool delegate(Scoped!(Context) context, Widget widget))
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: function gtk.Widget.Widget.addOnDraw (bool delegate(Context, Widget) dlg, GConnectFlags connectFlags = cast(GConnectFlags)0) is not callable using argument types (bool delegate(Scoped!(Context) context, Widget widget))
demos/gtkD/TestWindow/TestDrawingArea.d:178: Error: cannot implicitly convert expression (&this.drawCallback) of type bool delegate(Scoped!(Context) context, Widget widget) to bool delegate(Context, Widget)
make: *** [demos/gtkD/TestWindow/TestDrawingArea.o] Error 1
It work with my copy of gdc but it might be a newer version than you are
using (gdc 4.8.2 DMDFE 2.064.2)
This bug should only affect the demos which currently need dmd 2/063 or
up to compile.
I'll look at changing things to a solution that works with older
versions since you are not the firs to bring it up.