On Tue, 2005-06-28 at 09:56 -0500, James Willcox wrote: > Hello, > > So I was thinking last night that it would be pretty nice if assemblies > could register things to be called when Application.Init is called. It > would be useful for things like initializing gettext catalogs and the > like. So here's a patch that adds a GLib.AssemblyInitializerAttribute, > which Gtk.Application.Init then uses to call init methods. It's a bit > crack rock :)
We hashed this out a bit on irc, but I think with lazy loading this hack is prone to produce unexpected results. What we really need is a runtime supported attribute that specifies a method to be invoked on assembly load by the runtime itself. We've discussed this at various points, but I think there are concerns about the overhead and MS compatibility. -- Mike Kestner <[EMAIL PROTECTED]> _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
