On Thu, 10 Mar 2016 08:23:11 GMT, Russel Winder wrote:

With gtkmm and C++, the trend is away from dynamically created widgets to statically allocated widgets (except when using Glade). GtkD though seems to require use of dynamically allocated widgets since there appears to be no equivalent of statically allocated widget initialization that exists in C++. OK so the GC helps tidy things up instead of relying on RAII or smart pointers, but this is a very different idiom.

Just curious, not being familiar with gtkmm, or C++ for that matter, what does statically allocated mean exactly in this context?

If I had one quibble about GtkD, it would be that it doesn't offer much syntactic sugar on top of the GTK API to integrate and leverage better D idioms like ranges and templates. I assume though that to some extent this is the price you pay for a largely auto-generated API and if so that's a price I'm certainly willing to pay considering it's generally easy enough to provide that sugar yourself when needed.