Remember there are a lot of people that don't target the 2.0 runtime yet. Going to generics would totally alienate them.
-- Christian On Feb 7, 2008 7:01 AM, Philip Van Hoof <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-02-07 at 15:02 +0100, Anders Rune Jensen wrote: > > Hi > > > > I stumpled into the following issue today: > > > > https://bugzilla.novell.com/show_bug.cgi?id=359561 > > > > So a few questions is in place I guess. Why doesn't gtk sharp use > > generics? And is there any effort to convert it? Furthermore how much > > of the code is generated and how much is written by hand? > > [EMAIL PROTECTED]:~/repos/mono/gtk-sharp$ cat */*.custom | wc -l > 11540 > [EMAIL PROTECTED]:~/repos/mono/gtk-sharp$ > > Note about Generics that few of the GObject code that is being wrapped > with what Gapi generates, is very 'generic-aware' written imo. > > Something that I would love to see support generics is GtkTreeModel and > its GetValue method. I'm atm not sure how doable this would be. > > > Less related: > > If you want to see a GObject using project that aims at providing a > higher language that does support generics (or something that looks like > generics): take a look at Vala. It has a few types that do generics in > its Gee library (like, it has a Hashtable and a few List types). > > > -- > Philip Van Hoof, freelance software developer > home: me at pvanhoof dot be > gnome: pvanhoof at gnome dot org > http://pvanhoof.be/blog > http://codeminded.be > > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
