Re: [Vala] handling of 'uchar' type



On Die, 2007-04-24 at 21:36 +0200, Jürg Billeter wrote:
On Die, 2007-04-24 at 06:52 -0500, Michael Lawrence wrote:
Would it be possible to treat uchar more like (u)int? That is, allow
it to be used for indexing into arrays and automatically cast literals
in comparisons? 

Using uchar as array index should be easy to fix.

Fixed in SVN.



For example:

foo(uchar b) {
  if (b > 0) {
  }
}

Currently gives an error for the comparison of 'b' and '0' unless I
cast 0 to uchar.

That should certainly be fixed, we'll have to check how to handle such
conversions in general.

Fixed in SVN.

Jürg




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