[Gtk-sharp-list] wird extra line

Gonzalo Paniagua Javier gonzalo@ximian.com
07 Jun 2003 02:29:40 +0200


El vie, 06-06-2003 a las 23:44, Mike Kestner escribió:
> On Thu, 2003-06-05 at 15:03, Martin Willemoes Hansen wrote:
> 
> > public static new uint GType {
> >      get {
> >            uint raw_ret = gtk_tree_view_get_type();
> >            uint ret = raw_ret;
> >            return ret;
> >      }
> > }
> > 
> > Why is there the 3 lines instead of just: 
> > return gtk_tree_view_get_type(); ?
> 
> Probably an artifact of having to cast the raw_ret when working with
> other property types. Not worth worrying about in this case, since GType
> is a really low traffic property.

And the JIT will notice that and act as if that line was not there.

-Gonzalo