Experimental GTK structs-as-references support. Not enabled by default.
commit66421c36a3b112167b001c821b81a1e97c9c5bf0
authorArtur Skawina <art.08.09@gmail.com>
Thu, 26 Jan 2012 18:44:28 +0000 (26 19:44 +0100)
committerArtur Skawina <art.08.09@gmail.com>
Sat, 28 Jan 2012 16:27:26 +0000 (28 17:27 +0100)
treefbcefe3b62c1490e8c4ca865c0a9e582c564149c
parentbf05588f74a6c9df1493447cc9884b2711af7860
Experimental GTK structs-as-references support. Not enabled by default.

This is still missing methods-with-ref-args. Adding them w/o
switching to using reference types is too dangerous, and not
really an improvement as long as we have to work with pointers.

The reason for not switching right now is GDC -- currently it does
not return small structs (in our case just a pointer) in registers,
making the GTK constructors more expensive than they need to be.
Maybe this feature can be enabled anyway, but for now let's wait.
Turning this on is backwards compatible (does not require any changes
in applications, as the ref structs implicitly convert to pointers);
turning if off *would* break apps.
girtod.d
mixin/GLib2__MODULE_HEAD.d