[Gtk-sharp-list] Why does gtk sharp still use mcs (.NET 1.1)

Jerome Haltom wasabi at larvalstage.net
Thu Feb 7 15:02:22 EST 2008


A lot of libraries I've used have released 2.0 versions to be used by
2.0 users. Basically ifdefs adding in additional useful abilities using
generics, but not preventing any abilities for those without generic
support.

That said, I don't know what use Gtk could derive from supporting
generics. You can already create generic types that inherit from Gtk
base types, so that's not an issue.

On Thu, 2008-02-07 at 11:39 -0800, Christian Hergert wrote:
> 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 <spam at pvanhoof.be> 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?
> >
> > pvanhoof at schtrumpf:~/repos/mono/gtk-sharp$  cat */*.custom | wc -l
> > 11540
> > pvanhoof at schtrumpf:~/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  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list