[Gtk-sharp-list] uints on public structures in Gtk#
Miguel de Icaza
26 May 2003 14:02:27 -0400
In a few places in Gtk# we use uints in the public API. In some
cases its not required that these values be uints. This has a number of
* uints are not CLS compliant.
* In the particular case of Pixdata, the width and height are
uints. The problem with this is that most people will blindly
perform their own access operations:
data [y * rowstride + x]
But uint * int is a long, so they wont notice that their code
will actually be slower due to the use of 64-bit longs instead
of 32-bit longs.
Miguel de Icaza <email@example.com>