On 17/05/2011 09:13, Thiago Macieira wrote: > Indeed. That's also the reason why we use ints: if they are used for > everything, there are no warnings about mixing signedness or losing precision > due to casting to a smaller type.
Only until you have to pass the size of something to/from some other interface. All you're doing is moving the hurdle! I have to write extra code to do bounds checking because of the signed integer, and because of the loss of precision. It would be better to use unsigned values for sizes of things like everything else does. No warnings then either. That said, I'd much prefer ssize_t to the current int. The 2GB limit on 64bit systems would disappear, without impacting 32bit systems. Steve _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
