[Gtk-sharp-list] [PROPOSAL] Eliminating Application.Init ()

Michael Poole mdpoole@troilus.org
Sat, 13 Sep 2003 21:15:26 -0400

Mike Kestner writes:

> On Sat, 2003-09-13 at 13:22, Gonzalo Paniagua Javier wrote:
>> El jue, 11-09-2003 a las 05:59, fd escribió:
>> > More from the API beauty police...
> I don't understand what's so ugly about it.  main() {Init; ... Run;}.
> Any meaningful application is going to have 1000's of lines of code. 
> Why are we worried about removing a single line that only occurs once in
> any app?

It is one line of code, yet it is yet another place for developers to
miss something essential.  It is a wart (small, yes, but highly
visible) that could make Gtk# look bad.  But mostly, it is just
fragile API design.

What happens when I create an application that needs Gtk# and several
other libraries, each with their own Init() function?  What if there
are dependencies between these libraries -- am I, as a developer,
responsible for tracking that and making sure every pair of functions
from different libraries is called in the correct order?