Re: unsigned int vs. guint



On Sat, 2009-07-18 at 21:47 +0200, Murray Cumming wrote:
> On Sat, 2009-07-18 at 13:57 +0200, Krzesimir Nowak wrote:
> > Hi.
> > 
> > Recently Murray told me that at some point he will convert `unsigned
> > int' to `guint' [1]. I wonder what is the purpose for this. Something is
> > wrong with 2 words type?
> 
> Yeah, I prefer guint. But it's just a preference. But even if you
> disagree, which is easy, it's now the convention in gtkmm:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-wrapping-hg-files.html#gmmproc-basic-types
> 

I visited that link today to see what is an C++ equivalent of guint - I
was certain it was unsigned int. Seems I was wrong. :) And I don't
disagree - I don't mind if convention is guint or unsigned int. Just
curious. So, if this is a convention I could look for any unsigned ints
in public API and make a patch - I have some free time now.

Krzesimir Nowak



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]