[Gtk-sharp-list] wird extra line

Martin Willemoes Hansen mwh@sysrq.dk
07 Jun 2003 10:40:39 +0200


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

Oh yes, noticed that on many other properties.

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

Ahh I see, neat ..=20

> -Gonzalo
>=20

Thanks for your answers ..

> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--=20
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net=09
--------------------------------------------------------              =20